Update 50-configuration.sh

This commit is contained in:
Alexandre
2021-02-06 13:32:19 +01:00
committed by GitHub
parent 79aa595f98
commit 58595dbb87

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