mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
parent
d1d000d8d9
commit
6b8cd829db
3 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue