From 44748f8bb7c970d47261d16cea47bbcecacb3ba4 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Oct 2010 14:34:30 +0200 Subject: [PATCH] Ajout de l'inclusion d'un fichier de conf local --- check_rc_upgrade.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_rc_upgrade.sh b/check_rc_upgrade.sh index f641490..afc6083 100755 --- a/check_rc_upgrade.sh +++ b/check_rc_upgrade.sh @@ -3,7 +3,7 @@ RC_HOME=/var/www/webmail/public_html MAIL=root SEND_EVERY_NB_DAY=7 -CACHE=/var/www/webmail/.cache_check_upgrade +CACHE=$RC_HOME/../.cache_check_upgrade CACHE_FAILED=$CACHE.failed MAX_CHECK=10 MAX_FAILED=3 @@ -13,6 +13,8 @@ CHECK_URL=http://www.roundcube.net/download DEBUG=0 [ "$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/"` [ $DEBUG -eq 1 ] && echo "Current : $current"