Răsfoiți Sursa

Replace vesta with hestia in cronjob restore.

Raphael Schneeberger 7 ani în urmă
părinte
comite
c76d36016c
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  1. 5 0
      bin/v-restore-user

+ 5 - 0
bin/v-restore-user

@@ -690,6 +690,11 @@ if [ "$cron" != 'no' ] && [ ! -z "CRON_SYSTEM" ]; then
         echo -e "$(date "+%F %T") $jobs cron jobs"|tee -a $tmpdir/restore.log
     fi
 
+    # Replace paths from vesta to hestia
+    if [ "$backup_system" == 'vesta' ] && [ "$user" == 'admin' ]; then
+        sed -i 's/vesta/hestia/g' $tmpdir/cron/cron.conf
+    fi
+
     # Restoring cron jobs
     cp $tmpdir/cron/cron.conf $USER_DATA/cron.conf