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:
parent
61441c7d22
commit
d04177b512
2 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ exec_composer www-data "$DESTDIR" require "sblaisot/automatic_addressbook"
|
|||
installed_plugins+=" 'contextmenu', 'automatic_addressbook',"
|
||||
|
||||
# Update Roundcube configuration
|
||||
sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
|
||||
sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
|
||||
"${DESTDIR}/config/config.inc.php"
|
||||
|
||||
## Install rcmcarddav TODO: if baikal is detected
|
||||
|
@ -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"
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ exec_composer www-data "$DESTDIR" require "sblaisot/automatic_addressbook"
|
|||
installed_plugins+=" 'contextmenu', 'automatic_addressbook',"
|
||||
|
||||
# Update Roundcube configuration
|
||||
sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
|
||||
sudo sed -i "s#^\s*// installed plugins#&\n ${installed_plugins}#" \
|
||||
"$rc_conf"
|
||||
|
||||
## Install rcmcarddav if baikal is detected
|
||||
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue