From 9315a600166580da6e27dbdda3ed4d6623b38c79 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 4 Sep 2022 00:14:19 +0000 Subject: [PATCH] Github bot : script beautyshied --- addons_updater/rootfs/etc/cont-init.d/99-run.sh | 12 ++++++------ .../etc/cont-init.d/91-qbittorrent_configuration.sh | 2 +- qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh | 2 +- tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index bcf4ceef1..fb02c8b58 100644 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -75,12 +75,12 @@ for f in */; do BYDATE=$(jq -r .dockerhub_by_date updater.json) # Number of elements to check in dockerhub - if grep -Fxq "dockerhub_list_size" updater.json; then - LISTSIZE=$(jq -r .dockerhub_list_size updater.json) + if grep -Fxq "dockerhub_list_size" updater.json; then + LISTSIZE=$(jq -r .dockerhub_list_size updater.json) else - LISTSIZE=100 + LISTSIZE=100 fi - + #Skip if paused if [[ "$PAUSED" = true ]]; then bashio::log.magenta "... $SLUG addon updates are paused, skipping"; continue; fi @@ -111,7 +111,7 @@ for f in */; do sort -V | tail -n 1 ) - + [ "${BYDATE}" = true ] && LASTVERSION=$( curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" | @@ -122,7 +122,7 @@ for f in */; do sort -V | tail -n 1 ) && \ - DATE=$( + DATE=$( curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" | jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION" ) && \ diff --git a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh index 4d16c1343..fac01581e 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/91-qbittorrent_configuration.sh @@ -10,7 +10,7 @@ mkdir -p /config/qBittorrent # copy default config if [ ! -f /config/qBittorrent/qBittorrent.conf ]; then - cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf + cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf fi cd /config/qBittorrent/ || true diff --git a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh index 9e961ae31..199f93073 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/93-openvpn.sh @@ -110,7 +110,7 @@ else # Ensure no redirection by removing the direction tag if [ -f "$QBT_CONFIG_FILE" ]; then - sed -i '/Interface/d' "$QBT_CONFIG_FILE" + sed -i '/Interface/d' "$QBT_CONFIG_FILE" fi bashio::log.info "Direct connection without VPN enabled" diff --git a/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh b/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh index 7f519a86d..576060d26 100644 --- a/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh +++ b/tandoor_recipes/rootfs/etc/cont-init.d/32-ingress.sh @@ -5,10 +5,10 @@ # TEST # ######## if [ -f /config/tandooringress.conf ]; then - echo "running test file" - rm /etc/nginx/servers/ingress.conf - cp /config/tandooringress.conf /etc/nginx/servers/ingress.conf - chmod 775 /etc/nginx/servers/ingress.conf + echo "running test file" + rm /etc/nginx/servers/ingress.conf + cp /config/tandooringress.conf /etc/nginx/servers/ingress.conf + chmod 775 /etc/nginx/servers/ingress.conf fi #################