This website requires JavaScript.
Explore
Help
Sign In
SUNET
/
rut-test-ops
Watch
11
Star
0
Fork
You've already forked rut-test-ops
0
Code
Issues
Pull requests
Packages
Projects
Releases
Wiki
Activity
28cd67b49a
rut-test-ops
/
global
/
post-tasks.d
/
999reboot
6 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
import
2013-09-02 14:01:50 +00:00
#!/bin/sh
Opt-in for automatic reboot Use of && is bad in this context since it will return 1 causing cosmos to exit with status 1 if a reboot is not required.
2014-02-24 08:55:34 +00:00
if [ -f /var/run/reboot-required -a -f /etc/cosmos-automatic-reboot ]; then
reboot
fi
Reference in a new issue
Copy permalink