1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paperless-ngx_ynh.git synced 2024-09-03 19:56:33 +02:00

Update updater.sh

This commit is contained in:
Fabian Wilkens 2023-04-28 19:45:39 +02:00
parent 957ec83b70
commit fc540e3e68
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB

View file

@ -60,8 +60,8 @@ echo "Handling asset at $assets"
tempdir="$(mktemp -d)"
# Download sources and calculate checksum
filename=${asset_url##*/}
curl --silent -4 -L $asset_url -o "$tempdir/$filename"
filename=${assets##*/}
curl --silent -4 -L $assets -o "$tempdir/$filename"
checksum=$(sha256sum "$tempdir/$filename" | head -c 64)
# Delete temporary directory
@ -75,8 +75,8 @@ else
fi
# Rewrite source file
cat <<EOT > conf/$src.src
SOURCE_URL=$asset_url
cat <<EOT > conf/app.src
SOURCE_URL=$assets
SOURCE_SUM=$checksum
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=$extension