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
b92e4d44
Commit
b92e4d44
authored
Mar 21, 2016
by
David Kempe
Browse files
space and perms only - Matt
parent
f8c985bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
scripts/make-static-ip
View file @
b92e4d44
...
...
@@ -83,19 +83,19 @@ if [ -x $ip ] ; then
echo
"then run
\$
$0
$COMMONNAME
"
else
endpointip
=
$(
get_server_endpoint_ip
$ip
)
echo
"your new ip will be
$ip
"
echo
"your new ip will be
$ip
"
echo
"your new gateway will be
$endpointip
"
if
[
$COMMONNAME
==
""
]
;
then
echo
"writing new ccd
$COMMONNAME
"
echo
ifconfig-push
$ip
$endpointip
>
$CCDDIR$COMMONNAME
if
[
$COMMONNAME
==
""
]
;
then
echo
"writing new ccd
$COMMONNAME
"
echo
ifconfig-push
$ip
$endpointip
>
$CCDDIR$COMMONNAME
echo
"writing new shorewall vars"
create_shorewall_vars
prompt_restart_shorewall
echo
"writing new shorewall vars"
create_shorewall_vars
prompt_restart_shorewall
else
echo
"no command name supplied so nothing will be written out"
echo
"no command name supplied so nothing will be written out"
echo
"to write the results run
\$
$0
<COMMONNAME>"
fi
...
...
tests/test-make-static-ip.sh
100644 → 100755
View file @
b92e4d44
File mode changed from 100644 to 100755
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