From 17f11dc9f39211569b851b59576cf5662a8973b9 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 1 Jan 2023 00:14:06 +0000 Subject: [PATCH] Github bot : script beautyshied --- .templates/01-custom_script.sh | 2 +- paperless_ngx/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- resiliosync/rootfs/etc/cont-init.d/00-folders.sh | 2 +- scrutiny/rootfs/etc/cont-init.d/90-run.sh | 8 ++++---- scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh | 8 ++++---- webtrees/rootfs/etc/cont-init.d/99-run.sh | 10 +++++----- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.templates/01-custom_script.sh b/.templates/01-custom_script.sh index 1ceb81034..9b77fc363 100755 --- a/.templates/01-custom_script.sh +++ b/.templates/01-custom_script.sh @@ -8,7 +8,7 @@ mkdir -p /config/addons_autoscripts # Migrate scripts if [ -f /config/"${slug}".sh ]; then - mv -f /config/"${slug}".sh /config/addons_autoscripts/"${slug}".sh + mv -f /config/"${slug}".sh /config/addons_autoscripts/"${slug}".sh fi # Execute scripts diff --git a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh index e3742324a..d38fb5fb9 100755 --- a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh @@ -30,7 +30,7 @@ bashio::log.info "Defining database" case $(bashio::config 'database') in - # Use mariadb + # Use mariadb mariadb_addon) bashio::log.info "Using MariaDB addon. Requirements : running MariaDB addon. Discovering values..." if ! bashio::services.available 'mysql'; then @@ -58,7 +58,7 @@ case $(bashio::config 'database') in ;; - # Use sqlite + # Use sqlite *) bashio::log.info "Using sqlite as database driver" ;; diff --git a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh index 0f6228020..5519220e9 100755 --- a/resiliosync/rootfs/etc/cont-init.d/00-folders.sh +++ b/resiliosync/rootfs/etc/cont-init.d/00-folders.sh @@ -24,7 +24,7 @@ change_folders () { # Modify files echo "Adapting files" - # shellcheck disable=SC2013,SC2086 + # shellcheck disable=SC2013,SC2086 for file in $(grep -ril "$ORIGINALLOCATION" /etc /defaults); do sed -i "s=$ORIGINALLOCATION=$CONFIGLOCATION=g" $file; done # Adapt sync.conf diff --git a/scrutiny/rootfs/etc/cont-init.d/90-run.sh b/scrutiny/rootfs/etc/cont-init.d/90-run.sh index 4216f4cec..9ca78e808 100755 --- a/scrutiny/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny/rootfs/etc/cont-init.d/90-run.sh @@ -9,12 +9,12 @@ if bashio::config.true "expose_collector"; then bashio::log.info "collector.yaml exposed in /share/scrutiny" mkdir -p /share/scrutiny if [ -f /data/config/collector.yaml ] ; then - cp -rnf /data/config/collector.yaml /share/scrutiny || true - rm -R /data/config/collector.yaml + cp -rnf /data/config/collector.yaml /share/scrutiny || true + rm -R /data/config/collector.yaml fi if [ -f /opt/scrutiny/config/collector.yaml ] ; then - cp -rnf /opt/scrutiny/config/collector.yaml /share/scrutiny || true - rm /opt/scrutiny/config/collector.yaml + cp -rnf /opt/scrutiny/config/collector.yaml /share/scrutiny || true + rm /opt/scrutiny/config/collector.yaml fi touch /share/scrutiny/collector.yaml ln -sf /share/scrutiny/collector.yaml /data/config || true diff --git a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh index 4216f4cec..9ca78e808 100755 --- a/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/90-run.sh @@ -9,12 +9,12 @@ if bashio::config.true "expose_collector"; then bashio::log.info "collector.yaml exposed in /share/scrutiny" mkdir -p /share/scrutiny if [ -f /data/config/collector.yaml ] ; then - cp -rnf /data/config/collector.yaml /share/scrutiny || true - rm -R /data/config/collector.yaml + cp -rnf /data/config/collector.yaml /share/scrutiny || true + rm -R /data/config/collector.yaml fi if [ -f /opt/scrutiny/config/collector.yaml ] ; then - cp -rnf /opt/scrutiny/config/collector.yaml /share/scrutiny || true - rm /opt/scrutiny/config/collector.yaml + cp -rnf /opt/scrutiny/config/collector.yaml /share/scrutiny || true + rm /opt/scrutiny/config/collector.yaml fi touch /share/scrutiny/collector.yaml ln -sf /share/scrutiny/collector.yaml /data/config || true diff --git a/webtrees/rootfs/etc/cont-init.d/99-run.sh b/webtrees/rootfs/etc/cont-init.d/99-run.sh index 297e51a40..1a4960671 100755 --- a/webtrees/rootfs/etc/cont-init.d/99-run.sh +++ b/webtrees/rootfs/etc/cont-init.d/99-run.sh @@ -79,11 +79,11 @@ if bashio::config.true 'ssl'; then else - export HTTPS=false - export SSL=false - export HTTPS_REDIRECT=false - BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) - export BASE_URL="${BASE_URL/https:/http:}" + export HTTPS=false + export SSL=false + export HTTPS_REDIRECT=false + BASE_URL=$(bashio::config 'BASE_URL'):$(bashio::addon.port 80) + export BASE_URL="${BASE_URL/https:/http:}" fi