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

root commited on 2010-10-07 12:34:30
Showing 1 changed files, with 3 additions and 1 deletions.

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