depreacte qbittorent https script

This commit is contained in:
2025-05-17 13:22:26 +02:00
parent 3c6fdfdc96
commit a038ed17c4
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
mkdir /config/qBittorrent/cert/
cd /config/qBittorrent/cert/
echo ""
echo ""
echo "Write the nextcloud's URL to the COMMON NAME!"
echo "Leave the other fields blank"
echo ""
echo -n "Press ENTER to countinue..."
read x
openssl req -new -x509 -nodes -out server.crt -keyout server.key
sed -i "s/'WebUI\HTTPS\CertificatePath=.*'/'WebUI\HTTPS\CertificatePath=/config/qBittorrent/cert/server.crt'/g" /config/qBittorrent/qBittorrent.conf
sed -i "s/'WebUI\HTTPS\KeyPath=.*'/'WebUI\HTTPS\KeyPath=/config/qBittorrent/cert/server.key'/g" /config/qBittorrent/qBittorrent.conf
sed -i "s/'WebUI\HTTPS\Enabled=false'/'WebUI\HTTPS\Enabled=true'/g" /config/qBittorrent/qBittorrent.conf

View File

@@ -0,0 +1,21 @@
#!/bin/bash
cd "$(dirname "$0")"
echo "Containers: "
sudo docker ps --format '{{.Names}}'
echo ""
echo -n "Container name: "
read cont
sudo docker exec -ti $cont mkdir /https/
sudo docker cp "./files/https.sh" $cont:/https/
sudo docker exec -ti $cont /bin/bash /https/https.sh
sudo docker restart $cont