1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/filebrowser_ynh.git synced 2024-09-03 18:36:05 +02:00

Update updater.sh

This commit is contained in:
ericgaspar 2022-06-04 08:38:01 +02:00
parent b7c989a45f
commit 126653c941

View file

@ -66,15 +66,18 @@ 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
*"/linux-amd64-filebrowser.tar.gz") *"linux-amd64-filebrowser.tar.gz")
src="amd64" src="amd64"
;; ;;
*"/linux-arm64-filebrowser.tar.gz") *"linux-arm64-filebrowser.tar.gz")
src="arm64" src="arm64"
;; ;;
*"/linux-armv7-filebrowser.tar.gz") *"linux-armv7-filebrowser.tar.gz")
src="armhf" src="armhf"
;; ;;
*)
src=""
;;
esac esac
# If $src is not empty, let's process the asset # If $src is not empty, let's process the asset
@ -104,7 +107,7 @@ SOURCE_URL=$asset_url
SOURCE_SUM=$checksum SOURCE_SUM=$checksum
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=$extension SOURCE_FORMAT=$extension
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=false
SOURCE_FILENAME= SOURCE_FILENAME=
EOT EOT
echo "... conf/$src.src updated" echo "... conf/$src.src updated"