Github bot : script beautyshied

This commit is contained in:
github-actions
2022-07-03 00:14:34 +00:00
parent 59f83f58cb
commit b07fd90284

View File

@@ -50,12 +50,12 @@ case $(bashio::config 'DB_TYPE') in
# Install mysqlclient
pip install pymysql &>/dev/null
export DB_ENGINE=django.db.backends.mysql
export POSTGRES_HOST=$(bashio::services "mysql" "host") && bashio::log.blue "POSTGRES_HOST=$POSTGRES_HOST"
export POSTGRES_PORT=$(bashio::services "mysql" "port") && bashio::log.blue "POSTGRES_PORT=$POSTGRES_PORT"
export POSTGRES_USER=$(bashio::services "mysql" "username") && bashio::log.blue "POSTGRES_USER=$POSTGRES_USER"
export POSTGRES_PASSWORD=$(bashio::services "mysql" "password") && bashio::log.blue "POSTGRES_PASSWORD=$POSTGRES_PASSWORD"
export POSTGRES_DB="tandoor" && bashio::log.blue "POSTGRES_DB=tandoor"
export DB_ENGINE=django.db.backends.mysql
export POSTGRES_HOST=$(bashio::services "mysql" "host") && bashio::log.blue "POSTGRES_HOST=$POSTGRES_HOST"
export POSTGRES_PORT=$(bashio::services "mysql" "port") && bashio::log.blue "POSTGRES_PORT=$POSTGRES_PORT"
export POSTGRES_USER=$(bashio::services "mysql" "username") && bashio::log.blue "POSTGRES_USER=$POSTGRES_USER"
export POSTGRES_PASSWORD=$(bashio::services "mysql" "password") && bashio::log.blue "POSTGRES_PASSWORD=$POSTGRES_PASSWORD"
export POSTGRES_DB="tandoor" && bashio::log.blue "POSTGRES_DB=tandoor"
# Use values
sed -i "1a export DB_ENGINE=django.db.backends.mysql" /opt/recipes/boot.sh