1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00
thalos/install.sh

24 lines
504 B
Bash
Executable file

#!/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"