CONFIG_FILE is USED by dovecot, use ALTERNC_* INSTEAD
This commit is contained in:
parent
714c26033d
commit
6ef178cf67
|
@ -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';"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue