make clean

This commit is contained in:
ntr 2019-07-10 21:59:07 +10:00
parent 6b9611576d
commit 031c0f86f7
3 changed files with 12 additions and 1 deletions

View File

@ -11,6 +11,9 @@ package:
mnml:
./bin/build.sh
clean:
./bin/clean.sh
# test: test-unit test-integration
# test-unit:

View File

@ -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

8
bin/clean.sh Executable file
View File

@ -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