From 567f44f5b509fce6b36a64929a832c07f438a71d Mon Sep 17 00:00:00 2001 From: dbarzin Date: Mon, 13 Mar 2023 10:00:57 +0100 Subject: [PATCH] poweroff as root --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c659152..57e65d1 100755 --- a/install.sh +++ b/install.sh @@ -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