escape backslashes in sed

pull/7/head 4.1.3-2-04
binhex 6 years ago
parent 7dd9ea42bf
commit b68b0069a2

@ -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

Loading…
Cancel
Save