This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-role-warehost/mailserver/templates/dovecot_auth.sh

13 lines
256 B
Bash

#!/usr/bin/env sh
# {{ ansible_managed }}
read -d $'\x0' -r -u 3 USER;
read -d $'\x0' -r -u 3 PASSWD;
/usr/local/bin/warehost-auth -c /etc/warehost/auth.conf -u "$USER" -p "$PASSWD";
output=$?;
if [ "$output" == "0" ]; then
exec "$1";
fi
exit $output;