Don't overwrite environment variables

This commit is contained in:
nemunaire 2015-01-13 19:51:13 +01:00 committed by Nemunaire
parent 34f3747a3b
commit 2ce348a7ed

View File

@ -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