depreacte qbittorent https script
This commit is contained in:
15
qbithttps_deprecated/files/https.sh
Normal file
15
qbithttps_deprecated/files/https.sh
Normal 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
|
||||
21
qbithttps_deprecated/update.sh
Normal file
21
qbithttps_deprecated/update.sh
Normal 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
|
||||
Reference in New Issue
Block a user