mirror of
https://github.com/YunoHost-Apps/nodered_ynh.git
synced 2024-09-03 19:46:25 +02:00
Fix updater logics²
This commit is contained in:
parent
45c171b14d
commit
601566c403
1 changed files with 2 additions and 5 deletions
7
.github/workflows/updater.sh
vendored
7
.github/workflows/updater.sh
vendored
|
@ -56,12 +56,9 @@ echo "Handling asset at $asset_url"
|
||||||
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
# Here we base the source file name upon a unique keyword in the assets url (admin vs. update)
|
||||||
# Leave $src empty to ignore the asset
|
# Leave $src empty to ignore the asset
|
||||||
case $asset_url in
|
case $asset_url in
|
||||||
*"admin"*)
|
*"node-red-"*)
|
||||||
src="app"
|
src="app"
|
||||||
;;
|
;;
|
||||||
*"update"*)
|
|
||||||
src="app-upgrade"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
src=""
|
src=""
|
||||||
;;
|
;;
|
||||||
|
@ -89,7 +86,7 @@ extension=${filename##*.}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Rewrite source file
|
# Rewrite source file
|
||||||
cat <<EOT > conf/app.src
|
cat <<EOT > conf/$src.src
|
||||||
SOURCE_URL=$DOWNLOAD_URL
|
SOURCE_URL=$DOWNLOAD_URL
|
||||||
SOURCE_SUM=$checksum
|
SOURCE_SUM=$checksum
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
|
Loading…
Add table
Reference in a new issue