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

install.sh: Use Makefile to install stuff.

This commit is contained in:
Henrik Hautakoski 2023-05-14 18:09:39 +02:00
parent 160f2a35f8
commit 30f3ff5187

View file

@ -10,12 +10,7 @@ INSTALL_DIR=$1
echo "Installing application in: $INSTALL_DIR"
mkdir -p "$INSTALL_DIR"/{bin,logs}
install -m 750 -t "${INSTALL_DIR}/bin" build/thalos-server
if [ ! -f "${INSTALL_DIR}/config.yml" ]; then
install -T -m 600 config.example.yml "${INSTALL_DIR}/config.yml"
fi
install -m 750 -t "${INSTALL_DIR}" scripts/start.sh scripts/stop.sh
make -e DESTDIR=$INSTALL_DIR PREFIX= CFGDIR= install install-scripts
echo "Done"