CONFIG_FILE is USED by dovecot, use ALTERNC_* INSTEAD

This commit is contained in:
Benjamin Sonntag 2013-07-09 22:06:53 +00:00
parent 714c26033d
commit 6ef178cf67
1 changed files with 4 additions and 4 deletions

View File

@ -8,12 +8,12 @@
# Do not use parameters, Dovecot give environnment vars # Do not use parameters, Dovecot give environnment vars
# The only parameters is the expected binary server # The only parameters is the expected binary server
CONFIG_FILE="/usr/lib/alternc/functions.sh" ALTERNC_CONFIG_FILE="/usr/lib/alternc/functions.sh"
if [ ! -r "$CONFIG_FILE" ]; then if [ ! -r "$ALTERNC_CONFIG_FILE" ]; then
echo "Can't access $CONFIG_FILE." echo "Can't access $ALTERNC_CONFIG_FILE."
exit 1 exit 1
fi fi
. "$CONFIG_FILE" . "$ALTERNC_CONFIG_FILE"
mysql_query "update address a, domaines d, mailbox m set m.lastlogin=now() where a.domain_id=d.id and m.address_id=a.id and concat_ws('@',a.address,d.domaine) = '$USER';" mysql_query "update address a, domaines d, mailbox m set m.lastlogin=now() where a.domain_id=d.id and m.address_id=a.id and concat_ws('@',a.address,d.domaine) = '$USER';"