Sort instructions and setup bits

This commit is contained in:
Steve Howes
2024-04-10 21:47:18 +01:00
parent f3b7c2bedb
commit 50254e973b
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ run: build
./dorset-binformation
.PHONY:run
install: build
install:
mkdir -p /opt/dorset-binformation/
useradd dorset-binformation || true
chown dorset-binformation:dorset-binformation /opt/dorset-binformation/
+6 -3
View File
@@ -4,9 +4,12 @@ A data scraper for the Dorset Council bin collection site for bin collection dat
# Installation
````
go get -v github.com/stevenhowes/dorset-binformation/
make install
service dorset-binformation start
wget https://github.com/stevenhowes/dorset-binformation/archive/refs/heads/main.zip
unzip main.zip
cd dorset-binformation-main
make
sudo install
sudo service dorset-binformation start
````
Edit /etc/systemd/system/dorset-binformation.service if an alternate port is required
+1 -1
View File
@@ -7,7 +7,7 @@ Type=simple
User=dorset-binformation
Group=dorset-binformation
WorkingDirectory=/opt/dorset-binformation/
ExecStart=/opt/dorset-binformation/dorset-binformation --port localhost:9090
ExecStart=/opt/dorset-binformation/dorset-binformation --port localhost:8998
Restart=on-failure
RestartSec=10
StandardOutput=syslog