mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-26 12:35:09 +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 10
|
|
done
|