docker-qBittorrentvpn/qbittorrent/stop.sh

16 lines
313 B
Bash
Raw Normal View History

2018-02-03 01:01:28 +00:00
#!/bin/bash
function trap_handler
{
2018-02-03 03:06:14 +00:00
echo "[info] Shutdown detected... copying config file to /config/qbittorrent"
2018-02-03 03:07:20 +00:00
yes | cp /root/.config/qBittorrent/qBittorrent.conf /config/qbittorrent/qBittorrent.conf
2018-02-03 03:06:14 +00:00
exit 0
2018-02-03 01:01:28 +00:00
}
trap trap_handler SIGINT SIGTERM SIGHUP
while true
do
2018-02-03 02:17:28 +00:00
sleep 10
2018-02-03 01:01:28 +00:00
done