1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Update updater.sh

This commit is contained in:
ericgaspar 2021-09-30 23:50:36 +02:00
parent 9217f6843a
commit a765c50767
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -63,16 +63,16 @@ 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
*"mattermost-v"$version"-linux-arm.tar.gz"*) *"mattermost-"*"-linux-arm.tar.gz"*)
src="arm" src="arm"
;; ;;
*"mattermost-v"$version"-linux-arm64.tar.gz"*) *"mattermost-"*"-linux-arm64.tar.gz"*)
src="arm64" src="arm64"
;; ;;
*"mattermost-v"$version"-linux-amd64.tar.gz"*) *"mattermost-"*"-linux-amd64.tar.gz"*)
src="x86-64" src="x86-64"
;; ;;
*"mattermost-enterprise-"$version"-linux-amd64.tar.gz"*) *"mattermost-enterprise-"*"-linux-amd64.tar.gz"*)
src="entreprise" src="entreprise"
;; ;;
esac esac
@ -126,9 +126,6 @@ done
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================
# Install moreutils, needed for sponge
sudo apt-get install moreutils
# Replace new version in manifest # Replace new version in manifest
echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json