From e1c22bc63d507beb11ab78e4ca5e9657b64bb351 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 28 Aug 2022 00:17:11 +0000 Subject: [PATCH] Github bot : script beautyshied --- .templates/92-smb_mounts.sh | 2 +- scrutiny/rootfs/etc/cont-init.d/01-run.sh | 12 ++++++------ scrutiny_fa/rootfs/etc/cont-init.d/01-run.sh | 12 ++++++------ tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh | 6 +++--- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.templates/92-smb_mounts.sh b/.templates/92-smb_mounts.sh index 9ef388152..049627399 100644 --- a/.templates/92-smb_mounts.sh +++ b/.templates/92-smb_mounts.sh @@ -47,7 +47,7 @@ if bashio::config.has_value 'networkdisks'; then # Clean name of network share # shellcheck disable=SC2116,SC2001 disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name - disk="${disk//"\040"/ }" #replace \040 with + disk="${disk//"\040"/ }" #replace \040 with diskname="${disk//\\//}" #replace \ with / diskname="${diskname##*/}" # Get only last part of the name diff --git a/scrutiny/rootfs/etc/cont-init.d/01-run.sh b/scrutiny/rootfs/etc/cont-init.d/01-run.sh index 81f25457e..894637007 100644 --- a/scrutiny/rootfs/etc/cont-init.d/01-run.sh +++ b/scrutiny/rootfs/etc/cont-init.d/01-run.sh @@ -19,9 +19,9 @@ ln -s "$DATABASELOCATION"/influxdb /opt/scrutiny ############################### if [ -f /data/scrutiny.db ]; then -bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak" -cp /data/scrutiny.db /share/scrutiny.db.bak -mv /data/scrutiny.db "$DATABASELOCATION"/config/ + bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak" + cp /data/scrutiny.db /share/scrutiny.db.bak + mv /data/scrutiny.db "$DATABASELOCATION"/config/ fi ###### @@ -30,9 +30,9 @@ fi # Align timezone with options if bashio::config.has_value "TZ"; then -TZ="$(bashio::config 'TZ')" -bashio::log.info "Timezone : $TZ" -sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone + TZ="$(bashio::config 'TZ')" + bashio::log.info "Timezone : $TZ" + sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone fi ################ diff --git a/scrutiny_fa/rootfs/etc/cont-init.d/01-run.sh b/scrutiny_fa/rootfs/etc/cont-init.d/01-run.sh index 2394a5e15..e4a1a685b 100644 --- a/scrutiny_fa/rootfs/etc/cont-init.d/01-run.sh +++ b/scrutiny_fa/rootfs/etc/cont-init.d/01-run.sh @@ -25,9 +25,9 @@ ln -s "$DATABASELOCATION"/influxdb /opt/scrutiny ############################### if [ -f /data/scrutiny.db ]; then -bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak" -cp /data/scrutiny.db /share/scrutiny.db.bak -mv /data/scrutiny.db "$DATABASELOCATION"/config/ + bashio::log.warning "Previous database detected, migration will start. Backup stored in /share/scrutiny.db.bak" + cp /data/scrutiny.db /share/scrutiny.db.bak + mv /data/scrutiny.db "$DATABASELOCATION"/config/ fi ###### @@ -36,9 +36,9 @@ fi # Align timezone with options if bashio::config.has_value "TZ"; then -TZ="$(bashio::config 'TZ')" -bashio::log.info "Timezone : $TZ" -sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone + TZ="$(bashio::config 'TZ')" + bashio::log.info "Timezone : $TZ" + sed -i "1a export TZ=$TZ" /etc/cont-init.d/10-timezone fi ################ diff --git a/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh b/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh index 27d89cedd..e2726028c 100644 --- a/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh +++ b/tandoor_recipes/rootfs/etc/cont-init.d/99-run.sh @@ -11,9 +11,9 @@ export SECRET_KEY=$(bashio::config 'SECRET_KEY') && bashio::log.blue "SECRET_KEY CSRF_TRUSTED_ORIGINS="http://localhost" for element in ${ALLOWED_HOSTS//,/ }; do # Separate comma separated values - element="${element#"https://"}" - element="${element#"http://"}" - CSRF_TRUSTED_ORIGINS="http://$element,https://$element,$CSRF_TRUSTED_ORIGINS" + element="${element#"https://"}" + element="${element#"http://"}" + CSRF_TRUSTED_ORIGINS="http://$element,https://$element,$CSRF_TRUSTED_ORIGINS" done export CSRF_TRUSTED_ORIGINS