fickit: Can use MYSQL_PASSWORD_FILE in backups

This commit is contained in:
nemunaire 2024-03-27 11:31:36 +01:00
parent ecb815666e
commit c547c45d31
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
[ -z "${MYSQL_PASSWORD}" ] && [ -n "${MYSQL_PASSWORD_FILE}" ] && MYSQL_PASSWORD=$(cat "${MYSQL_PASSWORD_FILE}" | tr -d '\n')
while true
do
sleep 360