New Question
0

how can i use LocalScripts plugin to execute multiple scripts?

asked 2018-02-12 12:22:50 +0300

liat.sabag gravatar image

i'm using the LocalScripts plugin to run a custom made script followed by a reboot. how can i set it up to run multiple scripts from the same path, some of them may need reboot afterward. if i use the 1001 code then it only runs the first script and after reboot plugin wont run again (expected). if i use 1003 it seem that the machine goes into infinite loop of booting.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2018-02-13 17:36:44 +0300

avladu gravatar image

Hello,

In order to achieve your goal, you need to make your scripts idempotent. In your case, idempotency means that the scripts need to check for the goal state and perform the installation and the reboot if the state is not achieved or do nothing if the state is achieved.

Thank you,
Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-02-12 12:22:50 +0300

Seen: 208 times

Last updated: Feb 13 '18