improve pardus compatibility

This commit is contained in:
Aliberk Sandıkçı 2023-07-29 14:39:47 +03:00
parent d883258d1d
commit 65f620907a
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 10 additions and 2 deletions

View file

@ -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

View file

@ -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