mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +02:00
install.sh: Use Makefile to install stuff.
This commit is contained in:
parent
160f2a35f8
commit
30f3ff5187
1 changed files with 1 additions and 6 deletions
|
|
@ -10,12 +10,7 @@ INSTALL_DIR=$1
|
||||||
echo "Installing application in: $INSTALL_DIR"
|
echo "Installing application in: $INSTALL_DIR"
|
||||||
|
|
||||||
mkdir -p "$INSTALL_DIR"/{bin,logs}
|
mkdir -p "$INSTALL_DIR"/{bin,logs}
|
||||||
install -m 750 -t "${INSTALL_DIR}/bin" build/thalos-server
|
|
||||||
|
|
||||||
if [ ! -f "${INSTALL_DIR}/config.yml" ]; then
|
make -e DESTDIR=$INSTALL_DIR PREFIX= CFGDIR= install install-scripts
|
||||||
install -T -m 600 config.example.yml "${INSTALL_DIR}/config.yml"
|
|
||||||
fi
|
|
||||||
|
|
||||||
install -m 750 -t "${INSTALL_DIR}" scripts/start.sh scripts/stop.sh
|
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue