From 22c411a23d414da7f84c0362df8d72e889f1aae8 Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 10 Jan 2020 17:31:07 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3ad3f7a..609f09b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -5,14 +5,11 @@ set -eu # See comments in install script app=$YNH_APP_INSTANCE_NAME -final_path=/opt/yunohost/$app +final_path=/var/www/$app # Source YunoHost helpers source /usr/share/yunohost/helpers -# Stop emby-server service -systemctl stop emby-server - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -21,12 +18,6 @@ ynh_app_setting_set $app final_path $final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" -#============================================== -# INSTALL PLEX -#============================================== - -dpkg --install $final_path/emby-server-deb* - #================================================= # NGINX CONFIGURATION #================================================= @@ -34,7 +25,6 @@ dpkg --install $final_path/emby-server-deb* # Create a dedicated nginx config #ynh_add_nginx_config - #================================================= # UPGRADE CONFIG #================================================= @@ -51,6 +41,6 @@ dpkg --install $final_path/emby-server-deb* # ynh_app_setting_set "$app" unprotected_uris "/" #fi -# Start emby-server service -systemctl start emby-server +# Reload Nginx service +systemctl reload nginx