Thx for the hack. Le lundi 12 janvier 2015 14:31:21 UTC-5, Alvaro Miranda Aguilera a écrit : > > one way could be, you can run the script and then touch a file, so on next > run check if that file exits > > The best is try to make the scripts idempotent, so they are aware/don't > break on a 2nd run. > > something like > > if [ -f /usr/local/myscript.run ] > echo "already run" > #code of 2nd script here > else > echo "first run" > #code of 1st script here > touch /usr/local/myscript.run > fi > > > On Tue, Jan 13, 2015 at 5:11 AM, sushi takashi <[email protected] > <javascript:>> wrote: > >> I have two scripts. >> >> I want execute the first only if the machine is not exist ( first vagrant >> up) and execute the second only if the machine exist. >> >> I want install and configure my softwares but i don't need to do this >> whenever i start the machine. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Vagrant" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > >
-- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
