Skip to content
Snippets Groups Projects
Commit f057f6a0 authored by Bob Mottram's avatar Bob Mottram
Browse files

sed character

parent ff4e9ec7
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ function upgrade_cryptpad {
systemctl start cryptpad
if ! grep "debug|kanban" /etc/nginx/sites-available/cryptpad; then
sed -i 's/location ~.*/location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media|profile|contacts|todo|filepicker|debug|kanban)$ {/g' /etc/nginx/sites-available/cryptpad
sed -i 's@location ~.*@location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard|file|media|profile|contacts|todo|filepicker|debug|kanban)$ {@g' /etc/nginx/sites-available/cryptpad
systemctl restart nginx
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment