13 lines
256 B
Bash
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;
|