Compare commits

..

No commits in common. "ce1b9e5d631172ada391bd85ae381ba84dc2b34c" and "e71229e7a52d3f6abae66f9c243a7c2470ffcbf7" have entirely different histories.

5 changed files with 4 additions and 33 deletions

2
.gitignore vendored
View File

@ -1,5 +1,3 @@
webhook
webhook.service
**.tar.gz
webhook-*-*/

3
fetch.sh Executable file
View 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 .

View File

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

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

View File

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