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:
parent
4eaa242f11
commit
6412da147e
1 changed files with 4 additions and 5 deletions
9
.github/workflows/updater.sh
vendored
9
.github/workflows/updater.sh
vendored
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue