1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/roundcube_ynh.git synced 2024-09-03 20:16:28 +02:00

[fix] Set default path in nginx.conf and fix typo

This commit is contained in:
Jérôme Lebleu 2016-04-27 14:38:35 +02:00
parent 61441c7d22
commit d04177b512
2 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
# Copy and set nginx configuration
nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
sed -i "s@#PATH#@${path}@g" ../conf/nginx.conf
sed -i "s@#PATH#@${path:-/}@g" ../conf/nginx.conf
sed -i "s@#DESTDIR#@${DESTDIR}/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf "$nginx_conf"

View file

@ -105,7 +105,7 @@ sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
# Copy and set nginx configuration
nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"
sed -i "s@#PATH#@${path}@g" ../conf/nginx.conf
sed -i "s@#PATH#@${path:-/}@g" ../conf/nginx.conf
sed -i "s@#DESTDIR#@${DESTDIR}/@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf "$nginx_conf"