1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

Adding install.sh

This commit is contained in:
Henrik Hautakoski 2022-01-17 14:50:54 +01:00
parent 68426a8b5f
commit a975275a08
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

24
install.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 <install path>"
exit 1
fi
INSTALL_DIR=$1
echo "Installing application in: $INSTALL_DIR"
if [ -f "config.json" ];then
CONFIG_FILE=./config.json
else :
CONFIG_FILE=config.example.json
fi
mkdir -p "$INSTALL_DIR"/{bin,logs}
install -m 750 -t "${INSTALL_DIR}/bin" build/eosio-ship-trace-reader
install -T -m 600 ${CONFIG_FILE} "${INSTALL_DIR}/config.json"
install -m 750 -t "${INSTALL_DIR}" scripts/start.sh scripts/stop.sh
echo "Done"