mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 17:51:27 +03:00
feat: allow other CWD
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user