1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-11-24 08:52:18 +02:00

Update cron-update-lxcs.sh

tweak
This commit is contained in:
tteckster 2023-07-18 04:54:43 -04:00 committed by GitHub
parent a5b70669c5
commit 991b0c1c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,9 +16,6 @@ cat <<"EOF"
/_/
EOF
set -euo pipefail
shopt -s inherit_errexit nullglob
add() {
while true; do
read -p "This script will add a crontab schedule that updates all LXCs every Sunday at midnight. Proceed(y/n)?" yn
@ -35,7 +32,7 @@ add() {
remove() {
(crontab -l | grep -v "github.com/tteck/Proxmox/raw/main/misc/update-lxcs-cron.sh") | crontab -
rm /var/log/update-lxcs-cron.log
rm -rf /var/log/update-lxcs-cron.log
echo "Removed Crontab Schedule from Proxmox VE"
}