From 11fdf6ce24b16ea8b03dab60b6c96a77a5729a0b Mon Sep 17 00:00:00 2001 From: Stylix58 <63605602+Stylix58@users.noreply.github.com> Date: Mon, 29 Mar 2021 11:29:12 +0200 Subject: [PATCH] Update install --- scripts/install | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 660484e..be2c56d 100755 --- a/scripts/install +++ b/scripts/install @@ -22,6 +22,7 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH +internal_path=`echo $YNH_APP_ARG_INTERNAL_PATH "/icecoder"` ### If it's a multi-instance app, meaning it can be installed several times independently @@ -77,7 +78,7 @@ ynh_script_progression --message="Setting up source files..." --weight=1 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir="$final_path" +ynh_setup_source --dest_dir="$internal_path" #================================================= # GENERIC FINALIZATION @@ -110,11 +111,11 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Configuring permissions..." --weight=1 -if [[ $path_url =~ my_webapp ]] +if [[ $internal_path =~ my_webapp ]] then - chown -R my_webapp $final_path + chown -R my_webapp $internal_path else - chown -R www-data.www-data $final_path + chown -R www-data.www-data $internal_path fi #=================================================