mirror of
https://github.com/YunoHost-Apps/pihole_ynh.git
synced 2024-09-03 20:05:58 +02:00
fix autoupdate
This commit is contained in:
parent
4d1c96ca08
commit
4226856826
1 changed files with 2 additions and 2 deletions
4
.github/workflows/updater.sh
vendored
4
.github/workflows/updater.sh
vendored
|
@ -18,10 +18,10 @@ current_version=$(cat manifest.json | jq -j '.version|split("~")[0]')
|
|||
repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]')
|
||||
# Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions)
|
||||
version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
||||
version_adminlte=$(curl --silent "https://api.github.com/repos/pi-hole/AdminLTE/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
||||
version_adminlte=$(curl --silent "https://api.github.com/repos/pi-hole/web/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
||||
version_ftl=$(curl --silent "https://api.github.com/repos/pi-hole/FTL/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1)
|
||||
assets[0]="https://github.com/pi-hole/pi-hole/archive/$version.tar.gz"
|
||||
assets[1]="https://github.com/pi-hole/AdminLTE/archive/$version_adminlte.tar.gz"
|
||||
assets[1]="https://github.com/pi-hole/web/archive/$version_adminlte.tar.gz"
|
||||
assets[2]="https://github.com/pi-hole/FTL/archive/$version_ftl.tar.gz"
|
||||
|
||||
# Later down the script, we assume the version has only digits and dots
|
||||
|
|
Loading…
Add table
Reference in a new issue