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

Make shorewall dir even if shorewall doesn't exist

parent b801b709
......@@ -172,6 +172,11 @@ function get_current_certificates () {
function create_shorewall_vars () {
local shorewall_dir=$(dirname $SHOREWALLVARS)
if [ ! -d $shorewall_dir ]; then
mkdir -p $shorewall_dir
fi
grep "ifconfig-push" $CCDDIR* | sed "s/[\/|:]/ /g" | sed "s/-//g" | awk '{print $4 "=" $6}' > $SHOREWALLVARS
}
......
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