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 #=================================================