4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-05-08 03:09:35 +00:00

fix install script

This commit is contained in:
web 2020-12-22 12:14:54 +00:00
parent 8da7f4d9e2
commit b59e7df6ca

@ -1,14 +1,18 @@
#!/bin/bash
service=/etc/systemd/system/buildbot.service
ROOT=BASE_DIR=$(dirname "$(readlink -f "$0")")
ROOT=$(dirname "$(readlink -f "$0")")
echo "[Unit]" >> $service
echo "[Unit]" > $service
echo "Description=BuildBot" >> $service
echo "[Service]" >> $service
echo "ExecStart=$ROOT/start.sh" >> $service
echo "ExecStop=$ROOT/stop.sh" >> $service
echo "Type=forking" >> $service
echo "PIDFile=$ROOT/twistd.pid" >> $service
echo "WorkingDirectory=$ROOT" >> $service
echo "[Install]" >> $service
echo "WantedBy=multi-user.target" >> $service
systemctl enable buildbot
systemctl daemon-reload