Compare commits
No commits in common. "ce1b9e5d631172ada391bd85ae381ba84dc2b34c" and "e71229e7a52d3f6abae66f9c243a7c2470ffcbf7" have entirely different histories.
ce1b9e5d63
...
e71229e7a5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,3 @@
|
||||
webhook
|
||||
webhook.service
|
||||
|
||||
**.tar.gz
|
||||
webhook-*-*/
|
||||
|
||||
3
fetch.sh
Executable file
3
fetch.sh
Executable file
@ -0,0 +1,3 @@
|
||||
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
12
install.sh
@ -1,12 +0,0 @@
|
||||
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
|
||||
6
run.sh
6
run.sh
@ -1,5 +1 @@
|
||||
#!/bin/bash
|
||||
echo Start
|
||||
scriptDir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
|
||||
$scriptDir/webhook -hooks $scriptDir/hooks.json -verbose
|
||||
echo End Run.sh
|
||||
./webhook -hooks hooks.json -verbose
|
||||
|
||||
@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=Webhook
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
StartLimitIntervalSec=0
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
User=root
|
||||
ExecStart=RUNPATH/run.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
x
Reference in New Issue
Block a user