Unverified Commit 7cda0b54 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Escape backslashes in sed command (#851)

parent 61f6efa1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -688,7 +688,6 @@ fi
[ -z "$DEVICE5" ] && [ -b "/dev/disk5" ] && DEVICE4="/dev/disk5"
[ -z "$DEVICE6" ] && [ -b "/dev/disk6" ] && DEVICE4="/dev/disk6"


if [ -n "$DEVICE" ]; then
  addDevice "$DEVICE" "$DISK_TYPE" "3" "0xa" || exit $?
else
+1 −1
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ if [[ "${WEB:-}" != [Nn]* ]]; then
  fi

  sed -i "s/listen 8006 default_server;/listen $WEB_PORT default_server;/g" /etc/nginx/sites-enabled/web.conf
  sed -i "s/proxy_pass http://127.0.0.1:5700/;/proxy_pass http://127.0.0.1:$WSS_PORT/;/g" /etc/nginx/sites-enabled/web.conf
  sed -i "s/proxy_pass http:\/\/127.0.0.1:5700\/;/proxy_pass http:\/\/127.0.0.1:$WSS_PORT\/;/g" /etc/nginx/sites-enabled/web.conf

  # shellcheck disable=SC2143
  if [ -f /proc/net/if_inet6 ] && [ -n "$(ifconfig -a | grep inet6)" ]; then