docker-qBittorrentvpn/qbittorrent/stop.sh
2018-02-02 22:06:14 -05:00

16 lines
313 B
Bash

#!/bin/bash
function trap_handler
{
echo "[info] Shutdown detected... copying config file to /config/qbittorrent"
cp /home/$USER/.config/qBittorrent/qBittorrent.conf /config/qbittorrent/qBittorrent.conf
exit 0
}
trap trap_handler SIGINT SIGTERM SIGHUP
while true
do
sleep 10
done