Automatically creating CCD directory
This commit is contained in:
parent
50f387169a
commit
c12fdcd83f
@ -154,6 +154,9 @@ while getopts ":a:e:C:T:r:s:du:cp:n:DNmf:tz2" opt; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Create ccd directory for static routes
|
||||||
|
[ ! -d "$OPENVPN/ccd" ] && mkdir -p $OPENVPN/ccd
|
||||||
|
|
||||||
# if new routes were not defined with -r, use default
|
# if new routes were not defined with -r, use default
|
||||||
[ ${#TMP_ROUTES[@]} -gt 0 ] && OVPN_ROUTES=("${TMP_ROUTES[@]}")
|
[ ${#TMP_ROUTES[@]} -gt 0 ] && OVPN_ROUTES=("${TMP_ROUTES[@]}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user