From d919dcc49aa94fb51217e69fd22597c2ba3573c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 4 Aug 2018 00:35:34 +0200 Subject: [PATCH] Fix final path --- scripts/install | 2 +- scripts/upgrade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 6598735..ec106dc 100644 --- a/scripts/install +++ b/scripts/install @@ -31,7 +31,7 @@ app=$YNH_APP_INSTANCE_NAME #================================================= # Check destination directory -final_path="/var/www/$app" +final_path="/opt/yunohost/$app" test ! -e "$final_path" || ynh_die "This path already contains a folder" # Normalize the url path syntax diff --git a/scripts/upgrade b/scripts/upgrade index 71c6e28..bbfdbe2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -43,7 +43,7 @@ fi # If final_path doesn't exist, create it if [ -z "$final_path" ]; then - final_path=/var/www/$app + final_path=/opt/yunohost/$app ynh_app_setting_set "$app" final_path "$final_path" fi @@ -55,7 +55,7 @@ if [ -z "$path_url" ]; then fi # Detect old installation style -if [ -e /opt/yunohost/ffsync ]; then +if [ -e /etc/init.d/ffsync ]; then service ffsync stop update-rc.d -f ffsync remove