Ajout de l'inclusion d'un fichier de conf local

This commit is contained in:
root 2010-10-07 14:34:30 +02:00
parent ca37c41cd3
commit 44748f8bb7

View file

@ -3,7 +3,7 @@
RC_HOME=/var/www/webmail/public_html RC_HOME=/var/www/webmail/public_html
MAIL=root MAIL=root
SEND_EVERY_NB_DAY=7 SEND_EVERY_NB_DAY=7
CACHE=/var/www/webmail/.cache_check_upgrade CACHE=$RC_HOME/../.cache_check_upgrade
CACHE_FAILED=$CACHE.failed CACHE_FAILED=$CACHE.failed
MAX_CHECK=10 MAX_CHECK=10
MAX_FAILED=3 MAX_FAILED=3
@ -13,6 +13,8 @@ CHECK_URL=http://www.roundcube.net/download
DEBUG=0 DEBUG=0
[ "$1" == "-v" ] && DEBUG=1 [ "$1" == "-v" ] && DEBUG=1
[ -f "$0.local" ] && source "$0.local" && [ $DEBUG -eq 1 ] && echo "Import local config file : $0.local"
current=`egrep "define.*RCMAIL_VERSION" $RC_HOME/program/include/iniset.php|sed "s/define('.*', '\([^']*\)'.*$/\1/"` current=`egrep "define.*RCMAIL_VERSION" $RC_HOME/program/include/iniset.php|sed "s/define('.*', '\([^']*\)'.*$/\1/"`
[ $DEBUG -eq 1 ] && echo "Current : $current" [ $DEBUG -eq 1 ] && echo "Current : $current"