From aae5bc4571d531fe1f6223624e4b9b67a53d2f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 7 Oct 2022 15:02:43 +0200 Subject: [PATCH] Install in /var/www --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 7519f47..d6caf5d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,6 +72,12 @@ ynh_system_user_create --username=$app --home_dir="$final_path" # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +# Moved fron /opt to /var/www +if [ -d "/opt/yunohost/$app" ]; then + rm -rf "$final_path" + mv "/opt/yunohost/$app" "$final_path" +fi + if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=1