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

remove tmp/backups after first pre-upgrade if necessary

This commit is contained in:
Robles Rodolphe 2021-10-03 14:30:50 +02:00
parent 9c8acfb068
commit 595ed53ced

View file

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