mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-14 22:55:11 +00:00
15 lines
294 B
Bash
15 lines
294 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
function trap_handler
|
||
|
{
|
||
|
echo "Shutdown detected... copying config file to /config/qbittorrent"
|
||
|
cp /home/$USER/.config/qBittorrent/qBittorrent.conf /config/qbittorrent/qBittorrent.conf
|
||
|
}
|
||
|
|
||
|
trap trap_handler SIGINT SIGTERM SIGHUP
|
||
|
|
||
|
while true
|
||
|
do
|
||
|
sleep 60
|
||
|
done
|