From 65f620907a3790ae7d4c2139ea5fd00b04732d55 Mon Sep 17 00:00:00 2001 From: asandikci Date: Sat, 29 Jul 2023 14:39:47 +0300 Subject: [PATCH] improve pardus compatibility --- README.md | 10 +++++++++- go-daemon/install.sh | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38fb2b3..4f1f367 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,17 @@ Dependencies `git, go` Debian/Pardus ```bash -sudo apt install git golang-go +sudo apt install git ``` +Install latest version of Go ! +// TODO +// 1. get tar.gz from original website +// 2. extract tar.gz +// 3. move go to /usr/local/go +// 4. add to path +// 5. check version + Build / Install with: ```bash wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/go-daemon/install.sh | sh diff --git a/go-daemon/install.sh b/go-daemon/install.sh index c0e0793..e021136 100644 --- a/go-daemon/install.sh +++ b/go-daemon/install.sh @@ -22,7 +22,7 @@ go build -o ./bin/ # Installing sudo mv ./bin/godaemon1 /usr/bin/godaemon1 sudo mkdir -p /etc/godaemon1/ -if [ $(ps -jp 1 | awk 'FNR == 2 {print $6}') == "systemd" ] +if [[ $(ps -jp 1 | awk 'FNR == 2 {print $6}') == "systemd" ]] then sudo mv ./godaemon1.service /etc/systemd/system/ fi