diff --git a/modoboa_installer/scripts/files/dovecot/postlogin-postgres.sh.tpl b/modoboa_installer/scripts/files/dovecot/postlogin-postgres.sh.tpl index a556ecb..e91ac2d 100644 --- a/modoboa_installer/scripts/files/dovecot/postlogin-postgres.sh.tpl +++ b/modoboa_installer/scripts/files/dovecot/postlogin-postgres.sh.tpl @@ -1,5 +1,7 @@ #!/bin/sh +PATH="/usr/bin:/usr/local/bin:/bin" + psql -c "UPDATE core_user SET last_login=now() WHERE username='$USER'" > /dev/null exec "$@"