1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse-admin_ynh.git synced 2024-09-03 20:26:34 +02:00

Fix auto-updater

This commit is contained in:
tituspijean 2023-02-28 19:24:37 +01:00
parent 4eaa242f11
commit 6412da147e
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -79,11 +79,11 @@ checksum=$(sha256sum "$tempdir/$filename" | head -c 64)
rm -rf $tempdir rm -rf $tempdir
# Get extension # Get extension
if [[ $filename == *.tar.gz ]]; then #if [[ $filename == *.tar.gz ]]; then
extension=tar.gz extension=tar.gz
else #else
extension=${filename##*.} #extension=${filename##*.}
fi #fi
# Rewrite source file # Rewrite source file
cat <<EOT > conf/$src.src cat <<EOT > conf/$src.src
@ -92,7 +92,6 @@ SOURCE_SUM=$checksum
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=$extension SOURCE_FORMAT=$extension
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=
EOT EOT
echo "... conf/$src.src updated" echo "... conf/$src.src updated"