mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Remove unnecessary
This commit is contained in:
parent
3cfb2c18fb
commit
4f78e7a455
1 changed files with 1 additions and 6 deletions
|
@ -81,13 +81,8 @@ postsize=${filesize%?}.1${filesize: -1}
|
||||||
sudo sed -i "s@YNH_FILE_SIZE@$filesize@g" ../conf/nginx.conf
|
sudo sed -i "s@YNH_FILE_SIZE@$filesize@g" ../conf/nginx.conf
|
||||||
sudo sed -i "s@YNH_POST_SIZE@$postsize@g" ../conf/nginx.conf
|
sudo sed -i "s@YNH_POST_SIZE@$postsize@g" ../conf/nginx.conf
|
||||||
## path
|
## path
|
||||||
folder_path=${path%/}
|
|
||||||
sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf
|
sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf
|
||||||
# if path is only / (without subfolder), add trailing slash to alias
|
sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf
|
||||||
alias_path=$final_path
|
|
||||||
[ "$path" == '/' ] && alias_path=$alias_path'/'
|
|
||||||
sudo sed -i "s@YNH_EXAMPLE_ALIAS@$alias_path@g" ../conf/nginx.conf
|
|
||||||
sudo sed -i "s@YNH_EXAMPLE_FOLDER@$folder_path@g" ../conf/nginx.conf
|
|
||||||
|
|
||||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue