diff --git a/build/root/install.sh b/build/root/install.sh index ea2b98e..f79b734 100644 --- a/build/root/install.sh +++ b/build/root/install.sh @@ -164,7 +164,7 @@ if [[ $VPN_ENABLED == "yes" ]]; then echo "[info] OpenVPN config file (ovpn extension) is located at ${VPN_CONFIG}" | ts '%Y-%m-%d %H:%M:%.S' # convert CRLF (windows) to LF (unix) for ovpn - /usr/bin/dos2unix "${VPN_CONFIG}" + /usr/local/bin/dos2unix.sh "${VPN_CONFIG}" # get first matching 'remote' line in ovpn vpn_remote_line=$(cat "${VPN_CONFIG}" | grep -P -o -m 1 '^(\s+)?remote\s.*') diff --git a/run/nobody/watchdog.sh b/run/nobody/watchdog.sh index a193486..11b68ec 100644 --- a/run/nobody/watchdog.sh +++ b/run/nobody/watchdog.sh @@ -21,7 +21,7 @@ echo "[info] Removing session lock file (if it exists)..." rm -f /config/qBittorrent/data/BT_backup/session.lock # force unix line endings conversion in case user edited qbittorrent.conf with notepad -/usr/bin/dos2unix "${qbittorrent_config}" +/usr/local/bin/dos2unix.sh "${qbittorrent_config}" # set locale to prevent 4.1.4 gui render issues if no locale set grep -q 'General\\Locale' "${qbittorrent_config}" || sed -i '/\[Preferences\]/a General\\Locale=en' "${qbittorrent_config}"