mirror of
https://github.com/YunoHost-Apps/concrete5_ynh.git
synced 2024-09-03 18:25:54 +02:00
Update install
This commit is contained in:
parent
ac9be5b840
commit
12e91782a9
1 changed files with 2 additions and 11 deletions
|
@ -136,17 +136,8 @@ sudo rm $final_path/install.php
|
|||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
nginxconf="../conf/nginx.conf"
|
||||
if [ $path_url = "/" ]; then
|
||||
sed -i "s@YNH_WWW_ROOTPATH@@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ROOTAPP@/@g" ../conf/nginx.conf
|
||||
else
|
||||
sed -i "s@YNH_WWW_ROOTPATH@$path_url@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_ROOTAPP@$path_url@g" ../conf/nginx.conf
|
||||
fi
|
||||
sed -i "s@YNH_WWW_PATH@$path_url@g" $nginxconf
|
||||
sed -i "s@YNH_WWW_FINALPATH@$final_path@g" $nginxconf
|
||||
sed -i "s@YNH_WWW_APP@$app@g" $nginxconf
|
||||
sed -i "s@APP_URL@$domain$path_url@g" ../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_PATH@$path_url@g" $nginx_conf
|
||||
sed -i "s@YNH_WWW_ALIAS@$$final_path@g" $nginx_conf
|
||||
sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
sudo chown root: $nginxconf
|
||||
sudo chmod 644 $nginxconf
|
||||
|
|
Loading…
Add table
Reference in a new issue