From 87e944c107f0c85568d21468cddeaf40234fba39 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 19 Jun 2016 12:30:28 +0200 Subject: [PATCH] Backup config --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index d5014ee..08f792a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -97,7 +97,7 @@ then #Configuration InfCloud ;; esac sudo yunohost app setting $app language -v $language - CHECK_MD5_CONFIG "config.js" "$final_path/infcloud/config.js" # Enregistre la somme de contrôle du fichier de config + CHECK_MD5_CONFIG "config.js" "$final_path/infcloud/config.js" # Créé un backup du fichier de config si il a été modifié. sudo cp ../conf/config.js "$final_path/infcloud/" sudo sed -i "s@__DOMAIN__@$domain@g" "$final_path/infcloud/config.js" sudo sed -i "s@__PATH__@$path@g" "$final_path/infcloud/config.js"