From 43792ee16b9f7951199bc5d1982d0fee060381ee Mon Sep 17 00:00:00 2001 From: dbarzin Date: Sun, 5 Mar 2023 13:21:50 +0100 Subject: [PATCH] auto poweroff --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 7a9a88f..87266c4 100755 --- a/install.sh +++ b/install.sh @@ -143,6 +143,9 @@ rm /pandora/pandora/workers/virustotal.* { crontab -l -u $SUDO_USER; echo '30 * * * * find ~/pandora/tasks/* -type f -mtime +1 -delete '; } | crontab -u $SUDO_USER - { 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 * * * * poweroff';} | crontab -u $SUDO_USER - + #--------------------- # Pandora-box #---------------------