mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
cleaning the commands cp on upgrade script
This commit is contained in:
parent
ce4fccfd27
commit
58e2a40af0
1 changed files with 12 additions and 12 deletions
|
@ -70,19 +70,19 @@ data=$final_path/data
|
|||
skel_dist=$final_path/www/skel-dist
|
||||
|
||||
if [ -d "$squelettes" ]; then
|
||||
cp -ar $squelettes /tmp/squelettes
|
||||
cp -a "$squelettes" /tmp/squelettes
|
||||
fi
|
||||
|
||||
if [ -e "$bdd" ]; then
|
||||
cp -a $bdd /tmp/association.sqlite
|
||||
cp -a "$bdd" /tmp/association.sqlite
|
||||
fi
|
||||
|
||||
if [ -d "$data" ]; then
|
||||
cp -ar $data /tmp/data
|
||||
cp -a "$data" /tmp/data
|
||||
fi
|
||||
|
||||
if [ -d "$skel_dist" ]; then
|
||||
cp -ar $skel_dist /tmp/skel-dist
|
||||
cp -a "$skel_dist" /tmp/skel-dist
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -106,12 +106,12 @@ then
|
|||
|
||||
if [ -d "$backup_squelettes" ]
|
||||
then
|
||||
cp -ar $backup_squelettes $final_path/www/squelettes
|
||||
cp -a "$backup_squelettes" $final_path/www/squelettes
|
||||
fi
|
||||
|
||||
if [ -e "$backup_bdd" ]
|
||||
then
|
||||
cp -a $backup_bdd $final_path/association.sqlite
|
||||
cp -a "$backup_bdd" $final_path/association.sqlite
|
||||
fi
|
||||
|
||||
chown -R $app:$app $final_path
|
||||
|
@ -153,12 +153,12 @@ then
|
|||
|
||||
if [ -d "$backup_squelettes" ]
|
||||
then
|
||||
cp -ar $backup_squelettes $final_path/www/squelettes
|
||||
cp -a "$backup_squelettes" $final_path/www/squelettes
|
||||
fi
|
||||
|
||||
if [ -e "$backup_bdd" ]
|
||||
then
|
||||
cp -a $backup_bdd $final_path/association.sqlite
|
||||
cp -a "$backup_bdd" $final_path/association.sqlite
|
||||
fi
|
||||
|
||||
chown -R $app:$app $final_path
|
||||
|
@ -227,25 +227,25 @@ backup_skel_dist=/tmp/skel-dist
|
|||
|
||||
if [ -d "$backup_squelettes" ]
|
||||
then
|
||||
cp -ar $backup_squelettes $final_path/www/squelettes
|
||||
cp -a "$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
|
||||
cp -a "$backup_bdd" $final_path/association.sqlite
|
||||
ynh_secure_remove $backup_bdd
|
||||
fi
|
||||
|
||||
if [ -d "$backup_data" ]
|
||||
then
|
||||
cp -ar $backup_data $final_path/data
|
||||
cp -a "$backup_data" $final_path/data
|
||||
ynh_secure_remove $backup_data
|
||||
fi
|
||||
|
||||
if [ -d "$backup_skel_dist" ]
|
||||
then
|
||||
cp -ar $backup_skel_dist $final_path/www/skel-dist
|
||||
cp -a "$backup_skel_dist" $final_path/www/skel-dist
|
||||
ynh_secure_remove $backup_skel_dist
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue