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:
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"
|
||||
|
||||
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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue