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:
parent
e0ad533a23
commit
173d02455d
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue