mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-23 11:04:56 +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
|