Github bot : script beautyshied

This commit is contained in:
github-actions
2022-12-25 00:12:30 +00:00
parent b7fa0269a6
commit 2d9fc1c01f
3 changed files with 10 additions and 10 deletions

View File

@@ -8,13 +8,13 @@ mkdir -p "$CONFIGSOURCE"
# If no file, provide example # If no file, provide example
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /data/configurations ]; then if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /data/configurations ]; then
cp -r /data/configurations/* "$CONFIGSOURCE"/ || true cp -r /data/configurations/* "$CONFIGSOURCE"/ || true
rm -r /data/configurations rm -r /data/configurations
fi fi
if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ]; then if [ ! "$(ls -A "${CONFIGSOURCE}")" ] && [ -f /app/configurations ]; then
cp -r /app/configurations/* "$CONFIGSOURCE"/ || true cp -r /app/configurations/* "$CONFIGSOURCE"/ || true
rm -r /app/configurations rm -r /app/configurations
fi fi
ln -sf "$CONFIGSOURCE" /data/configurations ln -sf "$CONFIGSOURCE" /data/configurations

View File

@@ -2,9 +2,9 @@
# shellcheck shell=bash # shellcheck shell=bash
if [[ -n "${DISABLE_INGRESS}" ]]; then if [[ -n "${DISABLE_INGRESS}" ]]; then
bashio::log.info "Ingress disabled" bashio::log.info "Ingress disabled"
sed -i "/nginx/d" /etc/cont-init.d/99-run.sh sed -i "/nginx/d" /etc/cont-init.d/99-run.sh
exit 0 exit 0
fi fi
################# #################

View File

@@ -76,9 +76,9 @@ case $(bashio::config 'DB_TYPE') in
bashio::log.info "Creating database if required" bashio::log.info "Creating database if required"
mysql \ mysql \
-u "${POSTGRES_USER}" -p"${POSTGRES_PASSWORD}" \ -u "${POSTGRES_USER}" -p"${POSTGRES_PASSWORD}" \
-h "${POSTGRES_HOST}" -P "${POSTGRES_PORT}" \ -h "${POSTGRES_HOST}" -P "${POSTGRES_PORT}" \
-e "CREATE DATABASE IF NOT EXISTS \`${POSTGRES_DB}\` ;" -e "CREATE DATABASE IF NOT EXISTS \`${POSTGRES_DB}\` ;"
;; ;;
postgresql_external) postgresql_external)