Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
S1OVS
openvpn-server
Commits
a1b148be
Commit
a1b148be
authored
May 22, 2018
by
Matthew Smith
Browse files
Add creation of CCD dir to install
parent
360cc6d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian/postinst
View file @
a1b148be
...
...
@@ -141,6 +141,7 @@ OVPN_ORGNICK="$ORGNICK"
OVPN_ORGNAME="
$KEY_ORGANISATION
"
OVPN_REMOTE="
$SERVERADDR
"
FIREWALLED=no
ALLOCATEIP=yes
EOF
md5sum
$TMPCONF
/config.sh
>
$TMPCONF
/config.sh.md5sum
...
...
@@ -197,6 +198,9 @@ verb 1
mute 5
EOF
# Make the ccd dir
mkdir
-p
/etc/openvpn/ccd
# 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
# that looks like the one generated by pre-0.3.0 versions of openvpn-server.
...
...
debian/postrm
View file @
a1b148be
...
...
@@ -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/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
/etc/openvpn/ccd
>
/dev/null 2>&1
||
true
fi
##DEBHELPER##
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment