Merge branch 'master' of gitlab.com:MrFry/mrfrys-node-server

This commit is contained in:
mrfry 2021-10-06 19:14:13 +02:00
commit c13035a8df
6 changed files with 175 additions and 154 deletions

View file

@ -1,7 +1,9 @@
#!/bin/bash
hr() {
printf '\033[0;32m%*s\033[0m\n' "$(tput cols)" '' | tr ' ' '='
if [ -t 0 ]; then
printf '\033[0;32m%*s\033[0m\n' "$(tput cols)" '' | tr ' ' '='
fi
}
log() {
@ -80,16 +82,14 @@ touch publicDirs/qminingPublic/version
touch publicDirs/qminingPublic/motd
if [ -z "$(ls -A ./data/dbs)" ]; then
log "Making DB-s"
pushd src/standaloneUtils
NS_LOGLEVEL=2 node dbSetup.js
mv *.db ../../data/dbs
popd
fi
log "Disabling next telemetry"
npx --yes next telemetry disable
hr
echo "Done!"
echo "npm start {loglevel}"
echo "To start server"
hr
log "Done!"