Skip to content

Commit 5d75628

Browse files
committed
update install.sh
1 parent 84b56fb commit 5d75628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ path() {
215215
new_ws_path=${new_ws_path:-ws}
216216
echo -e "${yellow}×××××××××××××××××××××××${rest}"
217217

218-
sed -i "14s|location ~ .* {$|location ~ ^/${new_grpc_path}/(?<port>\\d+)/(.*)$ {|" /etc/nginx/sites-available/$saved_domain
219-
sed -i "28s|location ~ .* {$|location ~ ^/${new_ws_path}/(?<port>\\d+)$ {|" /etc/nginx/sites-available/$saved_domain
218+
sed -i "14s|location ~ .* {$|location ~ ^/${new_grpc_path}/(?<port>\\\d+)/(.*)$ {|" /etc/nginx/sites-available/$saved_domain
219+
sed -i "28s|location ~ .* {$|location ~ ^/${new_ws_path}/(?<port>\\\d+)$ {|" /etc/nginx/sites-available/$saved_domain
220220

221221
# Restart Nginx
222222
systemctl restart nginx

0 commit comments

Comments
 (0)