Files
zkldi_Tachi/_scripts/bootstrap.sh
T
2022-07-04 02:16:10 +01:00

21 lines
585 B
Bash
Executable File

#! /bin/bash
set -eo pipefail
echo "Moving example config files into usable places."
# https://stackoverflow.com/questions/59895/how-can-i-get-the-directory-where-a-bash-script-is-located-from-within-the-scrip
# if you actually think bash is a good programming language you are
# *straight up delusional*
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR";
cd ..;
cp client/.example.env client/.env
cp server/test.conf.json5 server/conf.json5
cp bot/example/conf.json5 bot/conf.json5
cp bot/example/example.env bot/.env
echo "Done."