diff --git a/scripts/upgrade b/scripts/upgrade index cee28e6..3068eee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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