mirror of
https://github.com/Mesteriis/hassio-addons-avm.git
synced 2026-01-10 07:21:01 +01:00
update repository references and improve script handling
This commit is contained in:
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
@@ -1,2 +1,2 @@
|
||||
---
|
||||
custom: https://buymeacoffee.com/mesteriisw
|
||||
custom: https://www.buymeacoffee.com/alexbelgium
|
||||
|
||||
2
.github/linters/.gitleaks.toml
vendored
2
.github/linters/.gitleaks.toml
vendored
@@ -7,4 +7,4 @@ useDefault = false
|
||||
|
||||
[allowlist]
|
||||
description = "global allowlist. whitelisting paths"
|
||||
#paths = ['''/github/workspace/epicgamesfree/templates/config.json''']
|
||||
paths = ['''/github/workspace/epicgamesfree/templates/config.json''']
|
||||
|
||||
114
.github/paths-filter.yml
vendored
114
.github/paths-filter.yml
vendored
@@ -1,4 +1,118 @@
|
||||
# AUTO BUILDS #
|
||||
# From https://github.com/Poeschl/Hassio-Addons
|
||||
# name: slug/filename ; could be slug/config.* for all files
|
||||
addons_updater: addons_updater/config.* # Image : yes
|
||||
arpspoof: arpspoof/config.* # Image : yes
|
||||
autobrr: autobrr/config.* # Image : yes
|
||||
baikal: baikal/config.* # Image : yes
|
||||
battybirdnet-pi: battybirdnet-pi/config.* # Image : yes
|
||||
bazarr: bazarr/config.* # Image : yes
|
||||
binance-trading-bot: binance-trading-bot/config.* # Image : yes
|
||||
birdnet-go: birdnet-go/config.* # Image : yes
|
||||
birdnet-pi: birdnet-pi/config.* # Image : yes
|
||||
bitwarden: bitwarden/config.* # Image : yes
|
||||
booksonic_air: booksonic_air/config.* # Image : yes
|
||||
browserless_chrome: browserless_chrome/config.* # Image : yes
|
||||
calibre: calibre/config.* # Image : yes
|
||||
calibre_web: calibre_web/config.* # Image : yes
|
||||
changedetection.io: changedetection.io/config.* # Image : yes
|
||||
cloudcommander: cloudcommander/config.* # Image : yes
|
||||
code-server: code-server/config.* # Image : yes
|
||||
codex: codex/config.* # Image : yes
|
||||
comixed: comixed/config.* # Image : yes
|
||||
elasticsearch: elasticsearch/config.* # Image : yes
|
||||
emby: emby/config.* # Image : yes
|
||||
enedisgateway2mqtt: enedisgateway2mqtt/config.* # Image : yes
|
||||
enedisgateway2mqtt_dev: enedisgateway2mqtt_dev/config.* # Image : yes
|
||||
epicgamesfree: epicgamesfree/config.* # Image : yes
|
||||
filebrowser: filebrowser/config.* # Image : yes
|
||||
fireflyiii: fireflyiii/config.* # Image : yes
|
||||
fireflyiii_data_importer: fireflyiii_data_importer/config.* # Image : yes
|
||||
fireflyiii_fints_importer: fireflyiii_fints_importer/config.* # Image : yes
|
||||
flaresolverr: flaresolverr/config.* # Image : yes
|
||||
flexget: flexget/config.* # Image : yes
|
||||
free_games_claimer: free_games_claimer/config.* # Image : yes
|
||||
gazpar2mqtt: gazpar2mqtt/config.* # Image : yes
|
||||
gitea: gitea/config.* # Image : yes
|
||||
grampsweb: grampsweb/config.* # Image : yes
|
||||
grav: grav/config.* # Image : yes
|
||||
guacamole: guacamole/config.* # Image : yes
|
||||
immich: immich/config.* # Image : yes
|
||||
immich_cuda: immich_cuda/config.* # Image : yes
|
||||
immich_openvino: immich_openvino/config.* # Image : yes
|
||||
immich_power_tools: immich_power_tools/config.* # Image : yes
|
||||
inadyn: inadyn/config.* # Image : yes
|
||||
jackett: jackett/config.* # Image : yes
|
||||
jellyfin: jellyfin/config.* # Image : yes
|
||||
jellyseerr: jellyseerr/config.* # Image : yes
|
||||
joal: joal/config.* # Image : yes
|
||||
joplin: joplin/config.* # Image : yes
|
||||
kometa: kometa/config.* # Image : yes
|
||||
lidarr: lidarr/config.* # Image : yes
|
||||
linkwarden: linkwarden/config.* # Image : yes
|
||||
mealie: mealie/config.* # Image : yes
|
||||
mealie_api: mealie_api/config.* # Image : yes
|
||||
mealie_frontend: mealie_frontend/config.* # IImage : yes # Image : yes
|
||||
monica: monica/config.* # Image : yes
|
||||
myelectricaldata: myelectricaldata/config.* # Image : yes
|
||||
myelectricaldata_dev: myelectricaldata_dev/config.* # Image : yes
|
||||
mylar3: mylar3/config.* # Image : yes
|
||||
navidrome: navidrome/config.* # Image : yes
|
||||
netalertx: netalertx/config.* # Image : yes
|
||||
nextcloud: nextcloud/config.* # Image : yes
|
||||
nzbget: nzbget/config.* # Image : yes
|
||||
omada: omada/config.* # Image : yes
|
||||
omada_v3: omada_v3/config.* # Image : yes
|
||||
ombi: ombi/config.* # Image : yes
|
||||
openproject: openproject/config.* # Image : yes
|
||||
organizr: organizr/config.* # Image : yes
|
||||
overleaf: overleaf/config.* # Image : yes
|
||||
overseerr: overseerr/config.* # Image : yes
|
||||
paperless_ngx: paperless_ngx/config.* # Image : yes
|
||||
papermerge: papermerge/config.* # Image : yes
|
||||
photoprism: photoprism/config.* # Image : yes
|
||||
piwigo: piwigo/config.* # Image : yes
|
||||
plex: plex/config.* # Image : yes
|
||||
portainer: portainer/config.* # Image : yes
|
||||
portainer_agent: portainer_agent/config.* # Image : yes
|
||||
postgres: postgres/config.* # Image : yes
|
||||
prowlarr: prowlarr/config.* # Image : yes
|
||||
qbittorrent: qbittorrent/config.* # Image : yes
|
||||
radarr: radarr/config.* # Image : yes
|
||||
readarr: readarr/config.* # Image : yes
|
||||
requestrr: requestrr/config.* # Image : yes
|
||||
resiliosync: resiliosync/config.* # Image : yes
|
||||
sabnzb: sabnzb/config.* # Image : yes
|
||||
sabnzbd: sabnzbd/config.* # Image : yes
|
||||
scrutiny: scrutiny/config.* # Image : yes
|
||||
scrutiny_fa: scrutiny_fa/config.* # Image : yes
|
||||
seafile: seafile/config.* # Image : yes
|
||||
signalk: signalk/config.* # Image : yes
|
||||
socks5-proxy: socks5-proxy/config.* # Image : yes
|
||||
sonarr: sonarr/config.* # Image : yes
|
||||
sponsorblockcast: sponsorblockcast/config.* # Image : yes
|
||||
spotweb: spotweb/config.* # Image : yes
|
||||
tandoor_recipes: tandoor_recipes/config.* # Image : yes
|
||||
tdarr: tdarr/config.* # Image : yes
|
||||
teamspeak: teamspeak/config.* # Image : yes
|
||||
tor: tor/config.* # Image : yes
|
||||
transmission: transmission/config.* # Image : yes
|
||||
transmission_openvpn: transmission_openvpn/config.* # Image : yes
|
||||
ubooquity: ubooquity/config.* # Image : yes
|
||||
unpackerr: unpackerr/config.* # Image : yes
|
||||
vaultwarden: vaultwarden/config.* # Image : yes
|
||||
webtop: webtop/config.* # Image : yes
|
||||
webtop_kde: webtop_kde/config.* # Image : yes
|
||||
webtrees: webtrees/config.* # Image : yes
|
||||
wger: wger/config.* # Image : yes
|
||||
whatsapper: whatsapper/config.* # Image : yes
|
||||
whoogle: whoogle/config.* # Image : yes
|
||||
xteve: xteve/config.* # Image : yes
|
||||
zoneminder: zoneminder/config.* # Image : yes
|
||||
zzz_archived_bitwarden: zzz_archived_bitwarden/config.* # Image : yes
|
||||
zzz_archived_code-server: zzz_archived_code-server/config.* # Image : yes
|
||||
zzz_archived_paperless_ngx: zzz_archived_paperless_ngx/config.* # Image : yes
|
||||
zzz_archived_plex_meta_manager: zzz_archived_plex_meta_manager/config.* # Image : yes
|
||||
zzz_draft_birdnet-pi: zzz_draft_birdnet-pi/config.* # Image : yes
|
||||
zzz_draft_overleaf: zzz_draft_overleaf/config.* # Image : yes
|
||||
zzz_test: zzz_test/config.* # Image : yes
|
||||
|
||||
719
.github/stars.svg
vendored
Normal file
719
.github/stars.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 337 KiB |
0
.github/stars2.svg
vendored
Normal file
0
.github/stars2.svg
vendored
Normal file
1
.github/starsevol.svg
vendored
Normal file
1
.github/starsevol.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 112 KiB |
BIN
.github/stats.png
vendored
Normal file
BIN
.github/stats.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
BIN
.github/stats_addons.png
vendored
Normal file
BIN
.github/stats_addons.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
30
.github/workflows/archived_lint-checks.yaml
vendored
30
.github/workflows/archived_lint-checks.yaml
vendored
@@ -3,9 +3,9 @@ name: Lint / Syntax checks
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
hadolint:
|
||||
@@ -50,16 +50,16 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
# markdownlint:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: ↩️ Checkout
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# # Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
# fetch-depth: 0
|
||||
#
|
||||
# - name: 🔎 Run markdownlint
|
||||
# uses: nosborn/github-action-markdown-cli@v3.3.0
|
||||
# with:
|
||||
# config_file: .markdownlint.yaml
|
||||
markdownlint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ↩️ Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 🔎 Run markdownlint
|
||||
uses: nosborn/github-action-markdown-cli@v3.3.0
|
||||
with:
|
||||
config_file: .markdownlint.yaml
|
||||
|
||||
1
.github/workflows/daily_README.yaml
vendored
1
.github/workflows/daily_README.yaml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
workflow_dispatch: null
|
||||
jobs:
|
||||
README_updater:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
|
||||
4
.github/workflows/daily_stale.yml
vendored
4
.github/workflows/daily_stale.yml
vendored
@@ -9,7 +9,7 @@ name: Mark stale issues and pull requests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 12 * * *'
|
||||
- cron: '0 12 * * 0'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v9.0.0
|
||||
- uses: actions/stale@v8
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
|
||||
|
||||
7
.github/workflows/helper_stats_graphs.yaml
vendored
7
.github/workflows/helper_stats_graphs.yaml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
stats_graphs:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
@@ -230,11 +231,11 @@ jobs:
|
||||
run: |
|
||||
echo "Starting run"
|
||||
# Get stars
|
||||
wget -S -O .github/stars.svg https://contrib.rocks/image?repo=Mesteriis/hassio-addons-avm || true
|
||||
wget -S -O .github/stars.svg https://contrib.rocks/image?repo=alexbelgium/hassio-addons || true
|
||||
# Get stars2
|
||||
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/Mesteriis/hassio-addons-avm?limit=30 || true
|
||||
wget -S -O .github/stars2.svg https://git-lister.onrender.com/api/stars/alexbelgium/hassio-addons?limit=30 || true
|
||||
# Get stars evolution
|
||||
wget -S -O .github/starsevol.svg "https://api.star-history.com/svg?repos=Mesteriis/hassio-addons-avm&type=Date" || true
|
||||
wget -S -O .github/starsevol.svg "https://api.star-history.com/svg?repos=alexbelgium/hassio-addons&type=Date" || true
|
||||
- name: Commit if needed
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
|
||||
2
.github/workflows/on_issues.yml
vendored
2
.github/workflows/on_issues.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
echo "Starting"
|
||||
|
||||
# Get issues list
|
||||
curl -s -L https://api.github.com/repos/Mesteriis/hassio-addons-avm/issues > issueslist
|
||||
curl -s -L https://api.github.com/repos/alexbelgium/hassio-addons/issues > issueslist
|
||||
# Go through all folders, add to filters if not existing
|
||||
for f in $( find -- * -maxdepth 0 -type d | sort -r ); do
|
||||
if [ -f "$f"/config.json ]; then
|
||||
|
||||
40
.github/workflows/onpr_automerge.old
vendored
Normal file
40
.github/workflows/onpr_automerge.old
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# yamllint disable rule:line-length
|
||||
# shellcheck disable=SC2043
|
||||
---
|
||||
name: automerge
|
||||
on:
|
||||
pull_request_review:
|
||||
types:
|
||||
- submitted
|
||||
issue_comment:
|
||||
types: created
|
||||
check_suite:
|
||||
types:
|
||||
- completed
|
||||
status: {}
|
||||
jobs:
|
||||
labeler:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Add the automerge label
|
||||
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/automerge') }}
|
||||
uses: actions/github-script@v4
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
github.issues.addLabels({
|
||||
issue_number: context.issue.number,
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
labels: ['automerge']
|
||||
})
|
||||
automerge:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [labeler]
|
||||
steps:
|
||||
- id: automerge
|
||||
if: ${{ github.event.issue.pull_request }}
|
||||
name: automerge
|
||||
uses: "pascalgn/automerge-action@v0.16.2"
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
17
.github/workflows/onpush_builder.yaml
vendored
17
.github/workflows/onpush_builder.yaml
vendored
@@ -16,6 +16,7 @@ on:
|
||||
|
||||
jobs:
|
||||
correct_path_filters:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ↩️ Checkout
|
||||
@@ -128,6 +129,20 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Resolve Symlinks
|
||||
run: |
|
||||
# Find all symlinks and replace them with the real files or directories
|
||||
find . -type l | while read -r link; do
|
||||
target="$(readlink -f "$link")"
|
||||
# Remove the symlink
|
||||
rm "$link"
|
||||
if [ -d "$target" ]; then
|
||||
cp -R "$target" "$link"
|
||||
else
|
||||
cp "$target" "$link"
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Get information
|
||||
id: info
|
||||
uses: home-assistant/actions/helpers/info@master
|
||||
@@ -169,7 +184,7 @@ jobs:
|
||||
- name: Build ${{ matrix.addon }} add-on
|
||||
id: builderstep
|
||||
if: steps.check.outputs.build_arch == 'true'
|
||||
uses: home-assistant/builder@master
|
||||
uses: home-assistant/builder@2025.02.0
|
||||
env:
|
||||
CAS_API_KEY: ${{ secrets.CAS_API_KEY }}
|
||||
with:
|
||||
|
||||
5
.github/workflows/onpush_superlinter.yml
vendored
5
.github/workflows/onpush_superlinter.yml
vendored
@@ -9,9 +9,9 @@ name: Lint On Change
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [ master ]
|
||||
jobs:
|
||||
|
||||
run-lint:
|
||||
@@ -20,6 +20,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
# Full git history is needed to get a proper list of changed files within `super-linter`
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Lint Code Base
|
||||
|
||||
2
.github/workflows/weekly-supelinter.yaml
vendored
2
.github/workflows/weekly-supelinter.yaml
vendored
@@ -14,6 +14,7 @@ on:
|
||||
|
||||
jobs:
|
||||
make-executable:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
@@ -63,6 +64,7 @@ jobs:
|
||||
|
||||
check_crlf:
|
||||
name: Check CRLF action
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
8
.github/workflows/weekly_addons_updater
vendored
8
.github/workflows/weekly_addons_updater
vendored
@@ -27,10 +27,10 @@ jobs:
|
||||
run: |
|
||||
mkdir -p /data
|
||||
echo "{" >> /data/config.json
|
||||
echo " repository=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " gituser=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " gitapi=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " gitmail=\"Mesteriis/hassio-addons-avm\"," >> /data/config.json
|
||||
echo " repository=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " gituser=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " gitapi=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " gitmail=\"alexbelgium/hassio-addons\"," >> /data/config.json
|
||||
echo " verbose=false" >> /data/config.json
|
||||
echo "}" >> /data/config.json
|
||||
./addons_updater/rootfs/etc/cont-init.d/99-run.sh
|
||||
|
||||
1
.github/workflows/weekly_bashbeautify.yaml
vendored
1
.github/workflows/weekly_bashbeautify.yaml
vendored
@@ -11,6 +11,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
lint-bash:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
name: Lint Bash Scripts
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
2
.github/workflows/weekly_crlftolf.yaml
vendored
2
.github/workflows/weekly_crlftolf.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
crlf-to-lf:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository contents
|
||||
@@ -24,6 +25,7 @@ jobs:
|
||||
|
||||
fix-crlf:
|
||||
name: Fix CRLF Endings
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-latest # Use a Linux runner
|
||||
steps:
|
||||
- name: Checkout repository contents
|
||||
|
||||
1
.github/workflows/weekly_reduceimagesize.yml
vendored
1
.github/workflows/weekly_reduceimagesize.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
calibre:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
name: calibreapp/image-actions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
1
.github/workflows/weekly_sortjson.yaml
vendored
1
.github/workflows/weekly_sortjson.yaml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
sort_json:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
|
||||
13
.github/workflows/weekly_stats.yaml
vendored
13
.github/workflows/weekly_stats.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
stats_updater:
|
||||
if: github.repository_owner == 'alexbelgium'
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
@@ -38,22 +39,22 @@ jobs:
|
||||
if [ -f "$f"/config.json ] && jq -e '.image' "$f/config.json"; then
|
||||
SLUG="$(jq -r '.image' "$f/config.json" | awk -F 'alexbelgium/|-{arch' '{print $2}')"
|
||||
if [[ "$(jq '.arch[]' "$f/config.json")" == *"armv7"* ]]; then
|
||||
ARCH=armv7 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
ARCH=armv7 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
COUNT="${COUNT//,/}"
|
||||
COUNT1="$COUNT"
|
||||
echo "$COUNT $ARCH users with $SLUG" && DOWNLOADS="$(( DOWNLOADS + COUNT))"
|
||||
else COUNT1="-"; fi
|
||||
if [[ "$(jq '.arch[]' "$f/config.json")" == *"amd64"* ]]; then
|
||||
ARCH=amd64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
ARCH=amd64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
COUNT="${COUNT//,/}"
|
||||
COUNT2="$COUNT"
|
||||
echo "$COUNT $ARCH users with $SLUG" && DOWNLOADS="$(( DOWNLOADS + COUNT))"
|
||||
else COUNT2="-"; fi
|
||||
if [[ "$(jq '.arch[]' "$f/config.json")" == *"aarch64"* ]]; then
|
||||
ARCH=aarch64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/Mesteriis/hassio-addons-avm/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
ARCH=aarch64 && COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')"
|
||||
until [ -n "$COUNT" ]; do COUNT="$(curl --connect-timeout 5 -f -s -L https://github.com/alexbelgium/hassio-addons/pkgs/container/$SLUG-$ARCH/latest | awk '/Total downloads/{getline; print}' | awk -F '<|>' '{print $3}')" && sleep 5; ((c++)) && echo "repeat $c" && if [[ "$c" == 10 ]]; then count=0; fi; done
|
||||
COUNT="${COUNT//,/}"
|
||||
COUNT3="$COUNT"
|
||||
echo "$COUNT $ARCH users with $SLUG" && DOWNLOADS="$(( DOWNLOADS + COUNT))"
|
||||
|
||||
Reference in New Issue
Block a user