docker-qBittorrentvpn/qbittorrent/stop.sh
2018-02-02 21:17:28 -05:00

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