cron: ensure PATH variable contains necessary paths

This commit is contained in:
kaboom 2021-07-16 18:56:18 +03:00
parent 4fd8fe880a
commit abdffc22db
1 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,6 @@
# Ensure cron knows where commands like 'su' and 'reboot' are located
PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH
# Start the Minecraft server after an OS reboot
@reboot su server -c '~/framework/script/init.sh'