mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02: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)
|
BYDATE=$(jq -r .dockerhub_by_date updater.json)
|
||||||
|
|
||||||
# Number of elements to check in dockerhub
|
# Number of elements to check in dockerhub
|
||||||
if grep -Fxq "dockerhub_list_size" updater.json; then
|
if grep -Fxq "dockerhub_list_size" updater.json; then
|
||||||
LISTSIZE=$(jq -r .dockerhub_list_size updater.json)
|
LISTSIZE=$(jq -r .dockerhub_list_size updater.json)
|
||||||
else
|
else
|
||||||
LISTSIZE=100
|
LISTSIZE=100
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Skip if paused
|
#Skip if paused
|
||||||
if [[ "$PAUSED" = true ]]; then bashio::log.magenta "... $SLUG addon updates are paused, skipping"; continue; fi
|
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 |
|
sort -V |
|
||||||
tail -n 1
|
tail -n 1
|
||||||
)
|
)
|
||||||
|
|
||||||
[ "${BYDATE}" = true ] &&
|
[ "${BYDATE}" = true ] &&
|
||||||
LASTVERSION=$(
|
LASTVERSION=$(
|
||||||
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
|
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 |
|
sort -V |
|
||||||
tail -n 1
|
tail -n 1
|
||||||
) && \
|
) && \
|
||||||
DATE=$(
|
DATE=$(
|
||||||
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
|
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"
|
jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION"
|
||||||
) && \
|
) && \
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ mkdir -p /config/qBittorrent
|
|||||||
|
|
||||||
# copy default config
|
# copy default config
|
||||||
if [ ! -f /config/qBittorrent/qBittorrent.conf ]; then
|
if [ ! -f /config/qBittorrent/qBittorrent.conf ]; then
|
||||||
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /config/qBittorrent/ || true
|
cd /config/qBittorrent/ || true
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ else
|
|||||||
|
|
||||||
# Ensure no redirection by removing the direction tag
|
# Ensure no redirection by removing the direction tag
|
||||||
if [ -f "$QBT_CONFIG_FILE" ]; then
|
if [ -f "$QBT_CONFIG_FILE" ]; then
|
||||||
sed -i '/Interface/d' "$QBT_CONFIG_FILE"
|
sed -i '/Interface/d' "$QBT_CONFIG_FILE"
|
||||||
fi
|
fi
|
||||||
bashio::log.info "Direct connection without VPN enabled"
|
bashio::log.info "Direct connection without VPN enabled"
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
# TEST #
|
# TEST #
|
||||||
########
|
########
|
||||||
if [ -f /config/tandooringress.conf ]; then
|
if [ -f /config/tandooringress.conf ]; then
|
||||||
echo "running test file"
|
echo "running test file"
|
||||||
rm /etc/nginx/servers/ingress.conf
|
rm /etc/nginx/servers/ingress.conf
|
||||||
cp /config/tandooringress.conf /etc/nginx/servers/ingress.conf
|
cp /config/tandooringress.conf /etc/nginx/servers/ingress.conf
|
||||||
chmod 775 /etc/nginx/servers/ingress.conf
|
chmod 775 /etc/nginx/servers/ingress.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|||||||
Reference in New Issue
Block a user