Update cron-update-lxcs.sh

tweak
This commit is contained in:
tteckster 2023-07-17 17:48:39 -04:00 committed by GitHub
parent abee2dfb1b
commit f0742abb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ while true; do
esac esac
done done
(crontab -l 2>/dev/null; echo "0 0 * * * bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/update-lxcs-cron.sh)\"") | sed '$!N; /^\(.*\)\n\1$/!P; D' >>/var/log/update-lxcs-cron.log sh -c '(crontab -l -u root 2>/dev/null; echo "0 0 * * * bash -c \"\$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/update-lxcs-cron.sh)\"") | sed "$!N; /^\(.*\)\n\1$/!P; D" | crontab -u root -' >>/var/log/update-lxcs.log
clear clear
echo -e "\n To view Update LXCs Cron logs: cat /var/log/update-lxcs-cron.log" echo -e "\n To view Update LXCs Cron logs: cat /var/log/update-lxcs-cron.log"
} }