Fix appends
This commit is contained in:
parent
feccf85967
commit
ef390c91bf
|
@ -356,20 +356,8 @@ function install_radicale {
|
|||
else
|
||||
# alter the existing site config
|
||||
if ! grep "radicale" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}; then
|
||||
sed -i '@443@a
|
||||
location /radicale {
|
||||
auth_basic "Radicale";
|
||||
auth_basic_user_file /var/www/radicale/users;
|
||||
proxy_pass http://127.0.0.1:52322;
|
||||
}
|
||||
' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
sed -i '@listen 127.0.0.1@a
|
||||
location /radicale {
|
||||
auth_basic "Radicale";
|
||||
auth_basic_user_file /var/www/radicale/users;
|
||||
proxy_pass http://127.0.0.1:52322;
|
||||
}
|
||||
' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
sed -i '/443/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://127.0.0.1:52322;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
sed -i '/listen 127.0.0.1/a location \/radicale {\n auth_basic "Radicale";\n auth_basic_user_file \/var\/www\/radicale\/users;\n proxy_pass http://127.0.0.1:52322;\n }' /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue