feat: allow other CWD

This commit is contained in:
Isaac
2024-01-11 00:08:57 +00:00
parent 0e81c4833e
commit c596e237de
10 changed files with 104 additions and 43 deletions

View File

@@ -1,10 +1,16 @@
#!/bin/sh
#!/usr/bin/env bash
source="${BASH_SOURCE}"
base_dir=$(dirname $(dirname "$source"))
echo "Checking environment..."
node scripts/preinstall
script=scripts/preinstall
node "$base_dir/$script"
echo "Preparing the database..."
node scripts/postinstall
script=scripts/postinstall
node "$base_dir/$script"
echo "Starting..."
node src/
script=src/
node "$base_dir/$script"