diff --git a/conf/nginx.conf b/conf/nginx.conf index 37de41d..556b622 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,7 +9,6 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } -### Example PHP configuration (remove it if not used) index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file @@ -26,7 +25,6 @@ location __PATH__/ { fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; } -### End of PHP configuration part # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; diff --git a/scripts/install b/scripts/install index 2a697a3..434ae5e 100644 --- a/scripts/install +++ b/scripts/install @@ -105,6 +105,12 @@ ynh_replace_string --match_string="__DBUSER__" --replace_string="$db_name" --tar ynh_replace_string --match_string="__DBPWD__" --replace_string="$db_pwd" --target_file="$final_path/app/Config/database.php" ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/app/Config/database.php" +#================================================= +# MODIFY A CONFIG FILE +#================================================= + +ynh_replace_string --match_string="app/webroot" --replace_string="" --target_file="$final_path/app/View/Install/first.ctp" + #================================================= # STORE THE CONFIG FILE CHECKSUM #=================================================