Skip to content

Commit

Permalink
i don't think we need to actually run auth_setup prior to packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Oct 10, 2022
1 parent 4da36a9 commit 143bfcb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/malcolm_appliance_packager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if mkdir "$DESTDIR"; then
mkdir $VERBOSE -p "$DESTDIR/zeek/intel/MISP"
mkdir $VERBOSE -p "$DESTDIR/zeek/intel/STIX"
cp $VERBOSE ./docker-compose-standalone.yml "$DESTDIR/docker-compose.yml"
cp $VERBOSE ./auth.env "$DESTDIR/"
touch "$DESTDIR/"auth.env
cp $VERBOSE ./cidr-map.txt "$DESTDIR/"
cp $VERBOSE ./host-map.txt "$DESTDIR/"
cp $VERBOSE ./net-map.json "$DESTDIR/"
Expand All @@ -113,17 +113,13 @@ if mkdir "$DESTDIR"; then
ln -s ./control.py stop
ln -s ./control.py wipe
popd >/dev/null 2>&1
echo "You must set an administrator username and password for Malcolm, and self-signed X.509 certificates will be generated"
./scripts/auth_setup
rm -rf logstash/certs/ca.key
pushd .. >/dev/null 2>&1
DESTNAME="$RUN_PATH/$(basename $DESTDIR).tar.gz"
README="$RUN_PATH/$(basename $DESTDIR).README.txt"
cp $VERBOSE "$SCRIPT_PATH/install.py" "$RUN_PATH/"
cp $VERBOSE "$SCRIPT_PATH/malcolm_common.py" "$RUN_PATH/"
tar -czf $VERBOSE "$DESTNAME" "./$(basename $DESTDIR)/"
echo "Packaged Malcolm to \"$DESTNAME\""
echo ""

unset CONFIRMATION
echo ""
Expand Down

0 comments on commit 143bfcb

Please sign in to comment.