Adds pre-start for openvpn
This commit is contained in:
@@ -245,6 +245,7 @@ Once /scripts is mounted you'll need to write your custom code in the following
|
||||
|
||||
| Script | Function |
|
||||
|----------|----------|
|
||||
|/scripts/openvpn-pre-start.sh | This shell script will be executed before openvpn start |
|
||||
|/scripts/transmission-pre-start.sh | This shell script will be executed before transmission start |
|
||||
|/scripts/transmission-post-start.sh | This shell script will be executed after transmission start |
|
||||
|/scripts/transmission-pre-stop.sh | This shell script will be executed before transmission stop |
|
||||
|
@@ -13,6 +13,14 @@ fi
|
||||
|
||||
echo "Using OpenVPN provider: ${OPENVPN_PROVIDER}"
|
||||
|
||||
# If openvpn-pre-start.sh exists, run it
|
||||
if [ -x /scripts/openvpn-pre-start.sh ]
|
||||
then
|
||||
echo "Executing /scripts/openvpn-pre-start.sh"
|
||||
/scripts/openvpn-pre-start.sh "$@"
|
||||
echo "/scripts/openvpn-pre-start.sh returned $?"
|
||||
fi
|
||||
|
||||
if [[ "$OPENVPN_PROVIDER" = "NORDVPN" ]]
|
||||
then
|
||||
if [[ -z "$OPENVPN_CONFIG" ]]
|
||||
|
Reference in New Issue
Block a user