mirror of
https://github.com/YunoHost-Apps/navidrome_ynh.git
synced 2024-09-03 19:46:30 +02:00
fix
This commit is contained in:
parent
e00930dcf1
commit
d0e11dddbd
2 changed files with 10 additions and 22 deletions
|
@ -5,7 +5,7 @@ name = "Navidrome"
|
||||||
description.en = "Modern Music Server and Streamer compatible with Subsonic/Airsonic"
|
description.en = "Modern Music Server and Streamer compatible with Subsonic/Airsonic"
|
||||||
description.fr = "Serveur de musique moderne et Streamer compatibles avec Subsonic/Airsonic"
|
description.fr = "Serveur de musique moderne et Streamer compatibles avec Subsonic/Airsonic"
|
||||||
|
|
||||||
version = "0.52.0~ynh1"
|
version = "0.52.5~ynh1"
|
||||||
|
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
|
@ -55,12 +55,12 @@ ram.runtime = "50M"
|
||||||
[resources.sources]
|
[resources.sources]
|
||||||
|
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
amd64.url = "https://github.com/navidrome/navidrome/releases/download/v0.52.0/navidrome_0.52.0_linux_amd64.tar.gz"
|
amd64.url = "https://github.com/navidrome/navidrome/releases/download/v0.52.5/navidrome_0.52.5_linux_amd64.tar.gz"
|
||||||
amd64.sha256 = "88a3b24b5de094911ea414763f52c8407fc7e6473fedc64fa1f4d8f92ddba8e0"
|
amd64.sha256 = "b9781ea560ea09926557c665472faa26920738a5ffa0680c19f70df97f51598f"
|
||||||
arm64.url = "https://github.com/navidrome/navidrome/releases/download/v0.52.0/navidrome_0.52.0_linux_arm64.tar.gz"
|
arm64.url = "https://github.com/navidrome/navidrome/releases/download/v0.52.5/navidrome_0.52.5_linux_arm64.tar.gz"
|
||||||
arm64.sha256 = "aea1ffa9be35199f4cd5e01e55995f825d159bca6e8f648bdb01e7d3b2ad1f7b"
|
arm64.sha256 = "a64f2d088ed24b7fbbe61e29146212eb11dcc089cd229bb697f6eb7ec0651857"
|
||||||
armhf.url = "https://github.com/navidrome/navidrome/releases/download/v0.52.0/navidrome_0.52.0_linux_armv7.tar.gz"
|
armhf.url = "https://github.com/navidrome/navidrome/releases/download/v0.52.5/navidrome_0.52.5_linux_armv7.tar.gz"
|
||||||
armhf.sha256 = "2f96d207a71e5e048d67bc23ce6cc18a71ef7a9de84a0a430cd8917cfaa52e13"
|
armhf.sha256 = "ce9208cea8548a37920b8dbe133298f9ee2277141e77cb98e1b011e7b02fb428"
|
||||||
in_subdir = false
|
in_subdir = false
|
||||||
|
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
|
@ -9,12 +9,6 @@
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CHECK VERSION
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
upgrade_type=$(ynh_check_app_version_changed)
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -67,17 +61,11 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
then
|
ynh_setup_source --dest_dir="$install_dir" --full_replace=1
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
|
||||||
|
|
||||||
# Remove the app directory securely
|
|
||||||
ynh_secure_remove --file=$install_dir
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
|
||||||
ynh_setup_source --dest_dir="$install_dir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:$app "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
Loading…
Reference in a new issue