1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

prevent script upgrade loose the backups

This commit is contained in:
Robles Rodolphe 2021-09-27 15:12:14 +02:00
parent bd9781351b
commit 8b6d8f20ca

View file

@ -101,13 +101,11 @@ then
if [ -d "$backup_squelettes" ] if [ -d "$backup_squelettes" ]
then then
cp -ar $backup_squelettes $final_path/www/squelettes cp -ar $backup_squelettes $final_path/www/squelettes
ynh_secure_remove $backup_squelettes
fi fi
if [ -e "$backup_bdd" ] if [ -e "$backup_bdd" ]
then then
cp -a $backup_bdd $final_path/association.sqlite cp -a $backup_bdd $final_path/association.sqlite
ynh_secure_remove $backup_bdd
fi fi
chown -R $app:$app $final_path chown -R $app:$app $final_path