Skip to content

Commit

Permalink
escape backslashes in sed
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Nov 11, 2018
1 parent 7dd9ea4 commit b68b006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run/nobody/watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ while true; do
if [[ "${VPN_ENABLED}" == "yes" ]]; then

# forcibly set allow anonymous access from localhost to api (used to change incoming port)
sed -i "s~^WebUI\LocalHostAuth=.*~WebUI\LocalHostAuth=false~g" "${qbittorrent_config}"
sed -i 's~^WebUI\\LocalHostAuth=.*~WebUI\\LocalHostAuth=false~g' "${qbittorrent_config}"

# forcibly set random incoming port to false
sed -i "s~^General\UseRandomPort=.*~General\UseRandomPort=false~g" "${qbittorrent_config}"
sed -i 's~^General\\UseRandomPort=.*~General\\UseRandomPort=false~g' "${qbittorrent_config}"

# run script to check ip is valid for tunnel device (will block until valid)
source /home/nobody/getvpnip.sh
Expand Down

0 comments on commit b68b006

Please sign in to comment.