1
0
Fork 0
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:
Maniack Crudelis 2017-01-05 15:30:57 +01:00
parent 74dd364111
commit 0184b1c9c4

View file

@ -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=$?