Browse Source

Update cron-update-lxcs.sh

tweak
tteckster 1 year ago
parent
commit
991b0c1c69
1 changed files with 1 additions and 4 deletions
  1. 1 4
      misc/cron-update-lxcs.sh

+ 1 - 4
misc/cron-update-lxcs.sh

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