Github bot : script beautyshied

This commit is contained in:
github-actions
2022-09-04 00:14:19 +00:00
parent 5bbfeaccfd
commit 9315a60016
4 changed files with 12 additions and 12 deletions

View File

@@ -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"
) && \

View File

@@ -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

View File

@@ -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"

View File

@@ -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
#################