Fix JPS errors
parent
301d5dceda
commit
12226390a7
|
@ -1,5 +1,5 @@
|
||||||
type: update
|
type: update
|
||||||
jpsVersion: 1.1
|
jpsVersion: 1.2
|
||||||
name: MightyBox WordPress Backup/Restore Addon
|
name: MightyBox WordPress Backup/Restore Addon
|
||||||
id: mb-backup-manager
|
id: mb-backup-manager
|
||||||
description: Custom Backup and Restore Addon for WordPress using Restic. Supports backing up databases, core files, media files, and full backups with scheduling and retention policies.
|
description: Custom Backup and Restore Addon for WordPress using Restic. Supports backing up databases, core files, media files, and full backups with scheduling and retention policies.
|
||||||
|
@ -190,10 +190,11 @@ actions:
|
||||||
fi
|
fi
|
||||||
RESTIC_PWD=$(cat /etc/restic-password)
|
RESTIC_PWD=$(cat /etc/restic-password)
|
||||||
if [ "${settings.frequency}" = "daily" ]; then
|
if [ "${settings.frequency}" = "daily" ]; then
|
||||||
bash ${globals.scriptPath}/manage_backup_schedule.sh add "0 ${settings.hour} * * *" "$RESTIC_PWD"
|
cron_schedule="0 ${settings.hour} * * *"
|
||||||
else
|
else
|
||||||
bash ${globals.scriptPath}/manage_backup_schedule.sh add "0 ${settings.hour} * * ${settings.dayOfWeek}" "$RESTIC_PWD"
|
cron_schedule="0 ${settings.hour} * * ${settings.dayOfWeek}"
|
||||||
fi
|
fi
|
||||||
|
bash ${globals.scriptPath}/manage_backup_schedule.sh add "$cron_schedule" "$RESTIC_PWD"
|
||||||
- return:
|
- return:
|
||||||
type: info
|
type: info
|
||||||
message: "${response.out}"
|
message: "${response.out}"
|
||||||
|
|
Loading…
Reference in New Issue