Added uninstall script
parent
594bef7381
commit
96aa4e1e5b
12
manifest.jps
12
manifest.jps
|
@ -360,4 +360,14 @@ actions:
|
||||||
- curl -O https://deploy-proxy.mightybox.io/addons/mb-backup-manager/raw/branch/main/scripts/imports/check_backup_repo.sh
|
- curl -O https://deploy-proxy.mightybox.io/addons/mb-backup-manager/raw/branch/main/scripts/imports/check_backup_repo.sh
|
||||||
- curl -O https://deploy-proxy.mightybox.io/addons/mb-backup-manager/raw/branch/main/scripts/imports/check_repo_stats.sh
|
- curl -O https://deploy-proxy.mightybox.io/addons/mb-backup-manager/raw/branch/main/scripts/imports/check_repo_stats.sh
|
||||||
- chmod +x /home/litespeed/mb-backups/*.sh
|
- chmod +x /home/litespeed/mb-backups/*.sh
|
||||||
- sudo chown -R litespeed:litespeed /home/litespeed/mb-backups
|
- sudo chown -R litespeed:litespeed /home/litespeed/mb-backups
|
||||||
|
|
||||||
|
removeScripts:
|
||||||
|
- cmd[cp]:
|
||||||
|
user: root
|
||||||
|
commands:
|
||||||
|
# Remove the crontab entry for the add-on
|
||||||
|
- (crontab -l | grep -v "${globals.scriptPath}/manage_backup_schedule.sh" | crontab -) || true
|
||||||
|
- rm -rf "${globals.scriptPath}" # Use globals.scriptPath
|
||||||
|
- rm -f /etc/restic-password
|
||||||
|
- rm -f /etc/logrotate.d/backup-addon
|
Loading…
Reference in New Issue