diff --git a/Makefile b/Makefile index 71521bd5..14271b1a 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ package: mnml: ./bin/build.sh +clean: + ./bin/clean.sh + # test: test-unit test-integration # test-unit: diff --git a/bin/build.sh b/bin/build.sh index 61f54ed9..9615431d 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -10,7 +10,7 @@ if [ ! -f $MNML_PATH/etc/mnml.env ]; then echo "-----------------------------------------------" echo "export MNML_USER=\"$(whoami)\"" >> $MNML_PATH/etc/mnml.env - echo "export MNML_PG_PASSWORD=\"$(openssl rand -base64 16)\"" >> $MNML_PATH/etc/mnml.env + echo "export MNML_PG_PASSWORD=\"$(openssl rand -hex 16)\"" >> $MNML_PATH/etc/mnml.env echo "export MNML_PG_HOST=\"localhost\"" >> $MNML_PATH/etc/mnml.env fi diff --git a/bin/clean.sh b/bin/clean.sh new file mode 100755 index 00000000..2ad64a89 --- /dev/null +++ b/bin/clean.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# bless you chris and andy <3 +DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +MNML_PATH=$(realpath "$DIR/../") + +rm $MNML_PATH/etc/mnml.env +rm $MNML_PATH/server/.env