From 1efd95dc845c8ffb166d61756490c08098e14082 Mon Sep 17 00:00:00 2001 From: liberodark Date: Tue, 2 Jul 2019 12:11:55 +0200 Subject: [PATCH 1/2] Update upgrade --- scripts/upgrade | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3ad3f7a..1287719 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -10,8 +10,8 @@ final_path=/opt/yunohost/$app # Source YunoHost helpers source /usr/share/yunohost/helpers -# Stop emby-server service -systemctl stop emby-server +# Stop Adguard service +systemctl stop adguard #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -21,12 +21,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 +28,6 @@ dpkg --install $final_path/emby-server-deb* # Create a dedicated nginx config #ynh_add_nginx_config - #================================================= # UPGRADE CONFIG #================================================= @@ -43,14 +36,11 @@ dpkg --install $final_path/emby-server-deb* #ynh_replace_string "__PASSWORD__" "$password" "/etc/loolwsd/loolwsd.xml" #systemctl restart loolwsd - - # If app is public, add url to SSOWat conf as skipped_uris #if [[ $is_public -eq 1 ]]; then # See install script # ynh_app_setting_set "$app" unprotected_uris "/" #fi -# Start emby-server service -systemctl start emby-server - +# Start Adguard service +systemctl start adguard From a3b3ece520e7c2563b8366629a95f141020fab7b Mon Sep 17 00:00:00 2001 From: liberodark Date: Tue, 2 Jul 2019 12:13:15 +0200 Subject: [PATCH 2/2] Update backup --- scripts/backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup b/scripts/backup index af8ccd9..8c4484e 100644 --- a/scripts/backup +++ b/scripts/backup @@ -11,7 +11,7 @@ source /usr/share/yunohost/helpers # Backup sources & data # Note: the last argument is where to save this path, see the restore script. -ynh_backup "/var/www/${app}" "sources" +ynh_backup "/opt/yunohost/${app}" "sources" ### MySQL (remove if not used) ### # If a MySQL database is used: