mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
minor script fixes
This commit is contained in:
parent
16d6f04936
commit
4d3fd3a0af
1 changed files with 5 additions and 5 deletions
|
@ -28,11 +28,11 @@ function setupJson() {
|
|||
|
||||
makeNextSubmodule() {
|
||||
log "Making ${1}"
|
||||
pushd "submodules/${1}/"
|
||||
pushd "submodules/${1}/" || exit
|
||||
npm install
|
||||
npm audit fix
|
||||
npm run export
|
||||
popd
|
||||
popd || exit
|
||||
linkTarget="$PWD/nextStatic/${2}"
|
||||
if [ ! -f "${linkTarget}" ]; then
|
||||
ln -sf "$PWD/submodules/${1}/out" "${linkTarget}"
|
||||
|
@ -83,10 +83,10 @@ touch publicDirs/qminingPublic/motd
|
|||
|
||||
if [ -z "$(ls -A ./data/dbs)" ]; then
|
||||
log "Making DB-s"
|
||||
pushd src/standaloneUtils
|
||||
pushd src/standaloneUtils || exit
|
||||
NS_LOGLEVEL=2 node dbSetup.js
|
||||
mv *.db ../../data/dbs
|
||||
popd
|
||||
mv ./*.db ../../data/dbs
|
||||
popd || exit
|
||||
fi
|
||||
|
||||
log "Disabling next telemetry"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue