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
3c69ba5f
Commit
3c69ba5f
authored
Mar 21, 2016
by
David Kempe
Browse files
Remove '_' from deb file names instead of '-' - Matt
parent
b92e4d44
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/build-debian-client
View file @
3c69ba5f
...
...
@@ -30,10 +30,10 @@ mkdir -p DEBIAN etc/openvpn
ask_key_questions
FILEBASE
=
"
${
OVPN_ORGNICK
}
-
${
OVPN_COMMONNAME
}
"
FILEBASE
=
echo
"
${
OVPN_ORGNICK
}
-
${
OVPN_COMMONNAME
}
"
# deb files can only contain a-z and - so lets just fix the deb file, the name would need to be pretty screwed to fail or duplicate
# error message is "dpkg-deb: package name has characters that aren't lowercase alphanums or `-+.'"
DEBFILE
=
"
`
echo
openvpn-client-
${
FILEBASE
}
.deb |
tr
[
:upper:]
[
:lower:] |
sed
-e
's/[^a-z0-9.
-
]//g'
`
"
DEBFILE
=
"
`
echo
openvpn-client-
${
FILEBASE
}
.deb |
tr
[
:upper:]
[
:lower:] |
sed
-e
's/[^a-z0-9.
_
]//g'
`
"
make_pkcs12
"
$OVPN_EMAIL
"
"
$OVPN_COMMONNAME
"
"etc/openvpn/
${
FILEBASE
}
.p12"
chmod
0600
"etc/openvpn/
${
FILEBASE
}
.p12"
...
...
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