Change fetch.sh script to install.sh
This commit is contained in:
parent
b9f060b822
commit
7168a5d760
3
fetch.sh
3
fetch.sh
@ -1,3 +0,0 @@
|
||||
wget https://github.com/adnanh/webhook/releases/download/2.8.1/webhook-linux-amd64.tar.gz
|
||||
tar xvf webhook-linux-amd64.tar.gz
|
||||
cp webhook-linux-amd64/webhook .
|
||||
12
install.sh
Executable file
12
install.sh
Executable file
@ -0,0 +1,12 @@
|
||||
scriptDir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")" | sed 's/\//\\\//g')
|
||||
|
||||
wget -nc https://github.com/adnanh/webhook/releases/download/2.8.1/webhook-linux-amd64.tar.gz
|
||||
tar xvf webhook-linux-amd64.tar.gz
|
||||
cp webhook-linux-amd64/webhook .
|
||||
|
||||
sed "s/RUNPATH/$scriptDir/g" webhook.service.template > webhook.service
|
||||
cp webhook.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
|
||||
cp webhook /usr/bin
|
||||
cp * /webhook
|
||||
Loading…
x
Reference in New Issue
Block a user