From 173d02455d6d04d181c4afa2db849023ca99eb89 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Tue, 7 Apr 2020 04:36:13 +0200 Subject: [PATCH] chnage the code in upgrade to look for exist or not file association.bdd --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 84ad963..ccc4ef0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================