mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
if [[ -n "${DISABLE_INGRESS}" ]]; then
|
||||
bashio::log.info "Ingress disabled"
|
||||
sed -i "/nginx/d" /etc/cont-init.d/99-run.sh
|
||||
exit 0
|
||||
bashio::log.info "Ingress disabled"
|
||||
sed -i "/nginx/d" /etc/cont-init.d/99-run.sh
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#################
|
||||
|
||||
@@ -76,9 +76,9 @@ case $(bashio::config 'DB_TYPE') in
|
||||
bashio::log.info "Creating database if required"
|
||||
|
||||
mysql \
|
||||
-u "${POSTGRES_USER}" -p"${POSTGRES_PASSWORD}" \
|
||||
-h "${POSTGRES_HOST}" -P "${POSTGRES_PORT}" \
|
||||
-e "CREATE DATABASE IF NOT EXISTS \`${POSTGRES_DB}\` ;"
|
||||
-u "${POSTGRES_USER}" -p"${POSTGRES_PASSWORD}" \
|
||||
-h "${POSTGRES_HOST}" -P "${POSTGRES_PORT}" \
|
||||
-e "CREATE DATABASE IF NOT EXISTS \`${POSTGRES_DB}\` ;"
|
||||
;;
|
||||
|
||||
postgresql_external)
|
||||
|
||||
Reference in New Issue
Block a user