mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
parent
9e44515ed5
commit
429aa6182a
1 changed files with 9 additions and 6 deletions
|
@ -33,14 +33,17 @@ sudo chmod -R 755 $src_path
|
|||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
### Nginx ###
|
||||
if [ $path = "/" ]; then
|
||||
nginx_conf=../conf/nginx_root.conf
|
||||
nginxconf="../conf/nginx.conf"
|
||||
if [ $path = "/" ]; then
|
||||
sed -i "s@YNH_WWW_ROOTPATH@@g" ../conf/nginx.conf
|
||||
sed -i "s@/YNH_WWW_ROOTAPP@@g" ../conf/nginx.conf
|
||||
else
|
||||
nginx_conf=../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ROOTPATH@$path@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ROOTAPP@$app@g" ../conf/nginx.conf
|
||||
fi
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" $nginx_conf
|
||||
sed -i "s@YNH_WWW_ALIAS@$app/@g" $nginx_conf
|
||||
sed -i "s@YNH_WWW_APP@$app@g" $nginx_conf
|
||||
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf
|
||||
sed -i "s@YNH_WWW_FINALPATH@$final_path@g" $nginxconf
|
||||
sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
# If a dedicated php-fpm process is used:
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue