From 460e87957e2956742966f595ea6609b25f7cd61e Mon Sep 17 00:00:00 2001 From: Josue-T Date: Sat, 7 Jul 2018 22:34:54 +0200 Subject: [PATCH 1/2] Add comment about final_path --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 3018bf2..6eaf932 100755 --- a/scripts/install +++ b/scripts/install @@ -47,6 +47,9 @@ app=$YNH_APP_INSTANCE_NAME # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= +### In case of an app wich use directly nginx as webserver wich is written in html, php the final path is "/var/www/$app" +### For the app which has an internal webserver or which use uwsgi wich is written in python, java, go, ... +### the final path is "/opt/yunohost/$app" final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder" From 6390de8719eb48fd98bbb18e99d2f218caeee0ca Mon Sep 17 00:00:00 2001 From: JimboJoe Date: Sun, 8 Jul 2018 09:14:36 +0200 Subject: [PATCH 2/2] Comment rephrasing --- scripts/install | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 6eaf932..6ccf5b4 100755 --- a/scripts/install +++ b/scripts/install @@ -47,9 +47,8 @@ app=$YNH_APP_INSTANCE_NAME # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= -### In case of an app wich use directly nginx as webserver wich is written in html, php the final path is "/var/www/$app" -### For the app which has an internal webserver or which use uwsgi wich is written in python, java, go, ... -### the final path is "/opt/yunohost/$app" +### If the app uses nginx as web server (written in HTML/PHP in most cases), the final path should be "/var/www/$app". +### If the app provides an internal web server (or uses another application server such as uwsgi), the final path should be "/opt/yunohost/$app" final_path=/var/www/$app test ! -e "$final_path" || ynh_die "This path already contains a folder"