23 lines
564 B
Bash
23 lines
564 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Temporary Install file for testing until binary installation packages are ready
|
||
|
|
||
|
|
||
|
### C-daemon
|
||
|
# Cleaning
|
||
|
sudo rm /usr/bin/cdaemontmp
|
||
|
sudo rm -rf /usr/lib/cdaemontmp/
|
||
|
|
||
|
# Building
|
||
|
git clone https://git.aliberksandikci.com.tr/liderahenk/go-daemon
|
||
|
cd go-daemon/
|
||
|
go build -o c-daemon/bin/ c-daemon/go-files/info.go
|
||
|
gcc -o c-daemon/bin/test c-daemon/daemon/test.c c-daemon/daemon/daemon.c
|
||
|
sudo ln -sv "$(pwd)"/c-daemon/bin/info /info
|
||
|
```
|
||
|
|
||
|
# Installing
|
||
|
# move to
|
||
|
cd c-daemon
|
||
|
sudo mv bin/test /usr/bin/cdaemontmp
|
||
|
sudo mv bin/info /usr/lib/cdaemontmp/info
|