Update 50-configuration.sh

This commit is contained in:
Alexandre
2021-02-06 13:39:57 +01:00
committed by GitHub
parent 58595dbb87
commit f80893b4e7

View File

@@ -14,9 +14,9 @@ if bashio::config.true 'ssl'; then
cd /config/qBittorrent
LINE=$(sed -n '/Preferences/=' qBittorrent.conf)
LINE=$[LINE + 1]
sed -i "$LINE i=WebUI\\HTTPS\\Enabled=True" qBittorrent.conf
sed -i "$LINE i=WebUI\\HTTPS\\CertificatePath=/ssl/$CERTFILE" qBittorrent.conf
sed -i "$LINE i=WebUI\\HTTPS\\KeyPath=/ssl/$KEYFILE" qBittorrent.conf
sed -i "$LINE i=WebUI\\\HTTPS\\\Enabled=True" qBittorrent.conf
sed -i "$LINE i=WebUI\\\HTTPS\\\CertificatePath=/ssl/$CERTFILE" qBittorrent.conf
sed -i "$LINE i=WebUI\\\HTTPS\\\KeyPath=/ssl/$KEYFILE" qBittorrent.conf
#else bashio::log.error "Certificates not found in $CERTFILE and/or $KEYFILE"
#fi
fi