"stderr": "the input device is not a TTY\nthe input device is not a TTY

This commit is contained in:
olli 2022-12-07 12:16:24 +01:00
parent 5b9c61b622
commit d34b611c6e

View File

@ -211,12 +211,12 @@
do
sleep 5
done
if ! docker-compose exec -u git gitea.{{inventory_hostname}} gitea admin user list | grep -q " gtadmin "
if ! docker-compose exec -T -u git gitea.{{inventory_hostname}} gitea admin user list | grep -q " gtadmin "
then
cat env | egrep "^GTADMINPASSWD=" >env.tmp
. env.tmp
rm -f env.tmp
docker-compose exec -u git gitea.{{inventory_hostname}} gitea admin user create --username gtadmin --email admin@{{inventory_hostname}} --admin --password $GTADMINPASSWD
docker-compose exec -T -u git gitea.{{inventory_hostname}} gitea admin user create --username gtadmin --email admin@{{inventory_hostname}} --admin --password $GTADMINPASSWD
fi
backup: yes
validate: /bin/bash -n %s