From 2ce348a7ed408fcb51af70fd3a8e7c4a5b858fd0 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Tue, 13 Jan 2015 19:51:13 +0100 Subject: [PATCH] Don't overwrite environment variables --- config.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/config.sh b/config.sh index bc07a615..b60bc4b6 100644 --- a/config.sh +++ b/config.sh @@ -1,11 +1,20 @@ # The name of the frontend, like indicated in /etc/hosts -FRONTEND_HOSTNAME="phobos" +if [ -z "$FRONTEND_HOSTNAME" ] +then + export FRONTEND_HOSTNAME="phobos" +fi # Username of the unpriviledge user that runs scripts SYNCHRO_USER="synchro" # Directory where backup should be made -TO_BCKP="/mnt/backup" +if [ -z "$TO_BCKP" ] +then + TO_BCKP="/mnt/backup" +fi # Password of the MySQL user backup (with RO rights) -BCKP_PASS="Riuy6of sae^W0Sh" +if [ -z "$BCKP_PASS" ] +then + BCKP_PASS="Riuy6of sae^W0Sh" +fi