mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 50-configuration.sh
This commit is contained in:
@@ -10,12 +10,12 @@ if bashio::config.true 'ssl'; then
|
||||
CERTFILE=$(bashio::config 'certfile')
|
||||
KEYFILE=$(bashio::config 'keyfile')
|
||||
#Check if certificates exist
|
||||
if [ bashio::fs.file_exists "/ssl/$CERTFILE" ] && [ bashio::fs.file_exists "/ssl/$KEYFILE" ]; then
|
||||
echo 'WebUI\HTTPS\Enabled=True' >> /config/qbittorrent.conf
|
||||
echo "WebUI\HTTPS\CertificatePath=/ssl/$CERTFILE" >> /config/qbittorrent.conf
|
||||
echo "WebUI\HTTPS\KeyPath=/ssl/$KEYFILE" >> /config/qbittorrent.conf
|
||||
else bashio::log.error "Certificates not found in $CERTFILE and/or $KEYFILE"
|
||||
fi
|
||||
#if [ bashio::fs.file_exists "/ssl/$CERTFILE" ] && [ bashio::fs.file_exists "/ssl/$KEYFILE" ]; then
|
||||
echo 'WebUI\HTTPS\Enabled=True' >> /config/qbittorrent.conf
|
||||
echo "WebUI\HTTPS\CertificatePath=/ssl/$CERTFILE" >> /config/qbittorrent.conf
|
||||
echo "WebUI\HTTPS\KeyPath=/ssl/$KEYFILE" >> /config/qbittorrent.conf
|
||||
#else bashio::log.error "Certificates not found in $CERTFILE and/or $KEYFILE"
|
||||
#fi
|
||||
fi
|
||||
|
||||
bashio::log.info "Default username/password : admin/adminadmin"
|
||||
|
||||
Reference in New Issue
Block a user