mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
Ignore hooks in backup/restore
This commit is contained in:
parent
2e2eeb2d63
commit
63ad73e609
1 changed files with 2 additions and 2 deletions
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
# Backup the current version of the app, restore it if the upgrade fails
|
# Backup the current version of the app, restore it if the upgrade fails
|
||||||
sudo yunohost backup delete $app-before-upgrade
|
sudo yunohost backup delete $app-before-upgrade
|
||||||
sudo yunohost backup create --apps $app --name $app-before-upgrade --quiet
|
sudo yunohost backup create --ignore-hooks --apps $app --name $app-before-upgrade --quiet
|
||||||
EXIT_PROPERLY () {
|
EXIT_PROPERLY () {
|
||||||
trap '' EXIT
|
trap '' EXIT
|
||||||
set +eu
|
set +eu
|
||||||
sudo yunohost backup restore $app-before-upgrade --apps $app --force --quiet # Restore the backup if upgrade failed
|
sudo yunohost backup restore --ignore-hooks $app-before-upgrade --apps $app --force --quiet # Restore the backup if upgrade failed
|
||||||
ynh_die "Upgrade failed. The app was restored to the way it was before the failed upgrade."
|
ynh_die "Upgrade failed. The app was restored to the way it was before the failed upgrade."
|
||||||
}
|
}
|
||||||
set -eu
|
set -eu
|
||||||
|
|
Loading…
Add table
Reference in a new issue