diff --git a/scripts/install b/scripts/install index d463bec..cc3ac03 100755 --- a/scripts/install +++ b/scripts/install @@ -57,14 +57,13 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde # Register (book) web path if [[ $path_url =~ my_webapp ]] then - mkdir $YNH_APP_ARG_PATH - chown -R www-data.www-data $final_path - ynh_webpath_register --app=$app --domain=$domain --path_url=$YNH_APP_ARG_PATH -else - ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url chown -R my_webapp $final_path +else + chown -R www-data.www-data $final_path fi +ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url + #================================================= # STORE SETTINGS FROM MANIFEST