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

chnage the code in upgrade to look for exist or not file association.bdd

This commit is contained in:
Robles Rodolphe 2020-04-07 04:36:13 +02:00
parent e0ad533a23
commit 173d02455d

View file

@ -61,9 +61,9 @@ then
cp -ar $squelettes /tmp/squelettes
fi
if [ -b "$bdd" ]
if [ -e "$bdd" ]
then
cp -ar $bdd /tmp/association.sqlite
cp -a $bdd /tmp/association.sqlite
fi
#=================================================
@ -145,9 +145,9 @@ then
cp -ar /tmp/squelettes $final_path/www/squelettes
fi
if [ -b "$backup_bdd" ]
then
cp -ar /tmp/association.sqlite $final_path/association.sqlite
if [ -e "$backup_bdd" ]
then
cp -a /tmp/association.sqlite $final_path/association.sqlite
fi
#=================================================