improve pardus compatibility
This commit is contained in:
parent
d883258d1d
commit
65f620907a
2 changed files with 10 additions and 2 deletions
10
README.md
10
README.md
|
@ -15,9 +15,17 @@ Dependencies `git, go`
|
||||||
|
|
||||||
Debian/Pardus
|
Debian/Pardus
|
||||||
```bash
|
```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:
|
Build / Install with:
|
||||||
```bash
|
```bash
|
||||||
wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/go-daemon/install.sh | sh
|
wget -qO- https://git.aliberksandikci.com.tr/Liderahenk/go-daemon/raw/branch/main/go-daemon/install.sh | sh
|
||||||
|
|
|
@ -22,7 +22,7 @@ go build -o ./bin/
|
||||||
# Installing
|
# Installing
|
||||||
sudo mv ./bin/godaemon1 /usr/bin/godaemon1
|
sudo mv ./bin/godaemon1 /usr/bin/godaemon1
|
||||||
sudo mkdir -p /etc/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
|
then
|
||||||
sudo mv ./godaemon1.service /etc/systemd/system/
|
sudo mv ./godaemon1.service /etc/systemd/system/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue