Skip to content

Commit c76d360

Browse files
committed
Replace vesta with hestia in cronjob restore.
1 parent 3d3f779 commit c76d360

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-restore-user

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,11 @@ if [ "$cron" != 'no' ] && [ ! -z "CRON_SYSTEM" ]; then
690690
echo -e "$(date "+%F %T") $jobs cron jobs"|tee -a $tmpdir/restore.log
691691
fi
692692

693+
# Replace paths from vesta to hestia
694+
if [ "$backup_system" == 'vesta' ] && [ "$user" == 'admin' ]; then
695+
sed -i 's/vesta/hestia/g' $tmpdir/cron/cron.conf
696+
fi
697+
693698
# Restoring cron jobs
694699
cp $tmpdir/cron/cron.conf $USER_DATA/cron.conf
695700

0 commit comments

Comments
 (0)