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
8a1d453345
commit
0f306647e9
1 changed files with 7 additions and 14 deletions
|
@ -140,21 +140,14 @@ sudo chmod 777 $final_path -R
|
|||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
nginxrootconf="../conf/nginx-root.conf"
|
||||
|
||||
nginxconf="../conf/nginx.conf"
|
||||
if [ $path_url = "/" ]; then
|
||||
sed -i "s@ROOT_PATH@/var/www/$app@g" $nginxrootconf
|
||||
sed -i "s@APP_URL@$domain$path_url@g" $nginxrootconf
|
||||
sudo chown root: $nginxrootconf
|
||||
sudo chmod 644 $nginxrootconf
|
||||
sudo cp $nginxrootconf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
else
|
||||
sed -i "s@YNH_WWW_PATH@$path_url@g" $nginxconf
|
||||
sed -i "s@YNH_WWW_ALIAS@$final_path@g" $nginxconf
|
||||
sudo chown root: $nginxconf
|
||||
sudo chmod 644 $nginxconf
|
||||
sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
fi
|
||||
# Copy and set nginx configuration
|
||||
sed -i "s@{PATH}@${path_url}@g" $nginxconf
|
||||
sed -i "s@{LOCATION}@${path_url:-/}@g" $nginxconf
|
||||
sed -i "s@{DESTDIR}@${final_path}@g" $nginxconf
|
||||
sed -i "s@{POOLNAME}@${app}@g" $nginxconf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/${domain}.d/${app}.conf
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
|
Loading…
Add table
Reference in a new issue