mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -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"
|
||||
) && \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
#################
|
||||
|
||||
Reference in New Issue
Block a user