Skip to content

Commit

Permalink
create ca-trust directory on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed May 5, 2020
1 parent 4c24aff commit 2c2de9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def start():
# make sure the auth files exist. if we are in an interactive shell and we're
# missing any of the auth files, prompt to create them now
if sys.__stdin__.isatty() and (not MalcolmAuthFilesExist()):
check_call(['bash', os.path.join(ScriptPath, 'auth_setup')])
authSetup()

# still missing? sorry charlie
if (not MalcolmAuthFilesExist()):
Expand Down Expand Up @@ -173,6 +173,7 @@ def start():
# make sure some directories exist before we start
for path in [os.path.join(MalcolmPath, 'elasticsearch'),
os.path.join(MalcolmPath, 'elasticsearch-backup'),
os.path.join(MalcolmPath, os.path.join('nginx', 'ca-trust')),
os.path.join(MalcolmPath, os.path.join('pcap', 'upload')),
os.path.join(MalcolmPath, os.path.join('pcap', 'processed')),
os.path.join(MalcolmPath, os.path.join('zeek-logs', 'current')),
Expand Down
1 change: 1 addition & 0 deletions scripts/malcolm_appliance_packager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ if mkdir "$DESTDIR"; then
trap "cleanup" EXIT

mkdir $VERBOSE -p "$DESTDIR/nginx/certs/"
mkdir $VERBOSE -p "$DESTDIR/nginx/ca-trust/"
mkdir $VERBOSE -p "$DESTDIR/htadmin/"
mkdir $VERBOSE -p "$DESTDIR/logstash/certs/"
mkdir $VERBOSE -p "$DESTDIR/filebeat/certs/"
Expand Down

0 comments on commit 2c2de9f

Please sign in to comment.