gitea-set-org-logos: use -T on mariadb command

For some reason something about running under Ansible 6 trips this up
and fails with "unable to allocate a TTY", whereas the old version
didn't.  Tell it not to allocate a tty.

Change-Id: Iceb3686d6c00380f4ffba0be8a7af7abd10f8f8b
This commit is contained in:
Ian Wienand 2022-11-23 08:24:31 +11:00
parent c2c0edfae4
commit 65856979f8
No known key found for this signature in database

View File

@ -41,7 +41,7 @@
- name: Run update query
shell: >-
/usr/local/bin/docker-compose -f /etc/gitea-docker/docker-compose.yaml
exec mariadb bash -c 'mysql -uroot -p"$MYSQL_ROOT_PASSWORD" -e
exec -T mariadb bash -c 'mysql -uroot -p"$MYSQL_ROOT_PASSWORD" -e
"USE gitea; UPDATE user SET avatar = '\''{{ item }}'\'', use_custom_avatar = 1 WHERE name = '\''{{ item }}'\''"'
args:
executable: '/bin/bash'