From 50254e973b6f69395cd2511c36f8a558d2832fb9 Mon Sep 17 00:00:00 2001 From: Steve Howes Date: Wed, 10 Apr 2024 21:47:18 +0100 Subject: [PATCH] Sort instructions and setup bits --- Makefile | 2 +- README.md | 9 ++++++--- dorset-binformation.service | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index eb3767e..21f6aac 100644 --- a/Makefile +++ b/Makefile @@ -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/ diff --git a/README.md b/README.md index e85f10b..1401091 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/dorset-binformation.service b/dorset-binformation.service index 50a02ff..8c555ce 100644 --- a/dorset-binformation.service +++ b/dorset-binformation.service @@ -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