diff --git a/conf/nginx.conf b/conf/nginx.conf index 28645b9..32ec6bc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -10,7 +10,7 @@ location YNH_EXAMPLE_PATH { try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; - fastcgi_pass unix:/var/run/php5-fpm.sock; + fastcgi_pass unix:/var/run/php5-fpm-YNH_EXAMPLE_APP.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; diff --git a/scripts/install b/scripts/install index fa6c172..48835a8 100644 --- a/scripts/install +++ b/scripts/install @@ -116,6 +116,7 @@ sudo chown -R www-data: $data_path/thumbs ## path sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf +sudo sed -i "s@YNH_EXAMPLE_APP@${app}@g" ../conf/nginx.conf ## file upload size limit sudo sed -i "s@YNH_FILE_SIZE@${filesize}@g" ../conf/nginx.conf ## copy final diff --git a/scripts/upgrade b/scripts/upgrade index cad831d..be95f8f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,7 +27,7 @@ fi # definie useful vars parent_path=/var/www data_path=/home/yunohost.app/$app -final_path=$parent_path/$path +final_path=$parent_path/$app # retrieve stable version of bozon stable=$(cat ../BoZoN-stable) @@ -47,6 +47,7 @@ sudo rm -R $parent_path/BoZoN-$stable folder_path=${path%/} sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf +sudo sed -i "s@YNH_EXAMPLE_APP@${app}@g" ../conf/nginx.conf ## file upload size limit sudo sed -i "s@YNH_FILE_SIZE@${filesize}@g" ../conf/nginx.conf ## copy final