"stderr": "the input device is not a TTY\nthe input device is not a TTY
This commit is contained in:
parent
5b9c61b622
commit
d34b611c6e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user