mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 01:48:16 +01:00
Update 99-run.sh
This commit is contained in:
@@ -79,8 +79,9 @@ case $(bashio::config 'database') in
|
||||
sed -i "s|MYSQL_HOST=db|MYSQL_HOST=$(bashio::services "mysql" "host")|g" "$ENVFILE"
|
||||
sed -i "s|MYSQL_PORT=3306|MYSQL_PORT=$(bashio::services "mysql" "port")|g" "$ENVFILE"
|
||||
sed -i "s|MYSQL_ROOT_PASSWD=secret|MYSQL_USER_PASSWD=$(bashio::services "mysql" "password")|g" "$ENVFILE"
|
||||
sed -i "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" wait_for_db.sh
|
||||
sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" wait_for_db.sh
|
||||
sed -i "1a export MYSQL_HOST=$(bashio::services 'mysql' 'host')" *.sh
|
||||
sed -i "1a export MYSQL_PORT=$(bashio::services 'mysql' 'port')" *.sh
|
||||
sed -i "1a export MYSQL_USER_PASSWD=$(bashio::services "mysql" "password")" *.sh
|
||||
|
||||
bashio::log.warning "This addon is using the Maria DB addon"
|
||||
bashio::log.warning "Please ensure this is included in your backups"
|
||||
|
||||
Reference in New Issue
Block a user