1
0
Fork 0
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:
tituspijean 2021-09-11 22:19:16 +02:00
parent 45c171b14d
commit 601566c403

View file

@ -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