Commit a1b148be authored by Matthew Smith's avatar Matthew Smith
Browse files

Add creation of CCD dir to install

parent 360cc6d1
...@@ -141,6 +141,7 @@ OVPN_ORGNICK="$ORGNICK" ...@@ -141,6 +141,7 @@ OVPN_ORGNICK="$ORGNICK"
OVPN_ORGNAME="$KEY_ORGANISATION" OVPN_ORGNAME="$KEY_ORGANISATION"
OVPN_REMOTE="$SERVERADDR" OVPN_REMOTE="$SERVERADDR"
FIREWALLED=no FIREWALLED=no
ALLOCATEIP=yes
EOF EOF
md5sum $TMPCONF/config.sh >$TMPCONF/config.sh.md5sum md5sum $TMPCONF/config.sh >$TMPCONF/config.sh.md5sum
...@@ -197,6 +198,9 @@ verb 1 ...@@ -197,6 +198,9 @@ verb 1
mute 5 mute 5
EOF EOF
# Make the ccd dir
mkdir -p /etc/openvpn/ccd
# To trick ucf a bit and hopefully reduce the amount of gratuitous # To trick ucf a bit and hopefully reduce the amount of gratuitous
# question-asking, we need to generate the md5sum of a sever config file # question-asking, we need to generate the md5sum of a sever config file
# that looks like the one generated by pre-0.3.0 versions of openvpn-server. # that looks like the one generated by pre-0.3.0 versions of openvpn-server.
......
...@@ -25,6 +25,7 @@ if [ "$1" = "purge" ]; then ...@@ -25,6 +25,7 @@ if [ "$1" = "purge" ]; then
rmdir --ignore-fail-on-non-empty /var/lib/openvpn-server/openssl >/dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty /var/lib/openvpn-server/openssl >/dev/null 2>&1 || true
rmdir --ignore-fail-on-non-empty /var/lib/openvpn-server/openvpn >/dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty /var/lib/openvpn-server/openvpn >/dev/null 2>&1 || true
rmdir --ignore-fail-on-non-empty /var/lib/openvpn-server >/dev/null 2>&1 || true rmdir --ignore-fail-on-non-empty /var/lib/openvpn-server >/dev/null 2>&1 || true
rmdir --ignore-fail-on-non-empty /etc/openvpn/ccd >/dev/null 2>&1 || true
fi fi
##DEBHELPER## ##DEBHELPER##
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment