mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
backup delete si l'archive existe
This commit is contained in:
parent
74dd364111
commit
0184b1c9c4
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,9 @@ dbname=$app
|
|||
dbuser=$app
|
||||
|
||||
# Backup the current version of the app, restore it if the upgrade fails
|
||||
sudo yunohost backup delete $app-before-upgrade
|
||||
if sudo yunohost backup list | grep -q $app-before-upgrade > /dev/null 2>&1; then # Supprime l'ancienne archive seulement si elle existe
|
||||
sudo yunohost backup delete $app-before-upgrade
|
||||
fi
|
||||
sudo yunohost backup create --ignore-hooks --apps $app --name $app-before-upgrade
|
||||
EXIT_PROPERLY () {
|
||||
exit_code=$?
|
||||
|
|
Loading…
Add table
Reference in a new issue