1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00

poweroff as root

This commit is contained in:
dbarzin 2023-03-13 10:00:57 +01:00
parent 1c547df90c
commit 567f44f5b5

View file

@ -152,7 +152,7 @@ su - $SUDO_USER -c "rm ~/pandora/pandora/workers/xml*"
{ crontab -l -u $SUDO_USER; echo '35 * * * * find ~/pandora/tasks/* -type d -empty -mtime +1 -delete'; } | crontab -u $SUDO_USER -
# Poweroff at 20:00 (green energy)
{ crontab -l -u $SUDO_USER; echo '0 20 * * * /sbin/poweroff';} | crontab -u $SUDO_USER -
{ crontab -l -u root; echo '0 20 * * * /sbin/poweroff';} | crontab -u root -
#---------------------
# Pandora-box