Commit 1a880ec7 authored by Matthew Smith's avatar Matthew Smith
Browse files

- Remove shorewall restart, not much point restarting shorewall if

 there are no rules added for the vars
 - Fix up tabs
parent b5aa06d2
......@@ -83,21 +83,20 @@ 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
else
echo "no command name supplied so nothing will be written out"
echo "to write the results run \$ $0 <COMMONNAME>"
fi
echo "writing new shorewall vars"
create_shorewall_vars
else
echo "no command name supplied so nothing will be written out"
echo "to write the results run \$ $0 <COMMONNAME>"
fi
fi
......
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