mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-19 22:20:32 +00:00
fixed the bin_target to prevent issue with install
This commit is contained in:
parent
690e0e1623
commit
8c1ee9d2d9
|
@ -24,7 +24,7 @@ base_download_url=`dirname $artefact_url`
|
||||||
|
|
||||||
download_url=$base_download_url/webhookd-$os-${arch}.tgz
|
download_url=$base_download_url/webhookd-$os-${arch}.tgz
|
||||||
download_file=/tmp/webhookd-$os-${arch}.tgz
|
download_file=/tmp/webhookd-$os-${arch}.tgz
|
||||||
bin_target=/usr/local/bin/webhookd
|
bin_target=/usr/local/bin
|
||||||
|
|
||||||
echo "Downloading $download_url to $download_file ..."
|
echo "Downloading $download_url to $download_file ..."
|
||||||
sudo curl -o $download_file --fail -L $download_url
|
sudo curl -o $download_file --fail -L $download_url
|
||||||
|
@ -39,7 +39,7 @@ sudo mv /tmp/webhookd* $bin_target
|
||||||
[ $? != 0 ] && die "Unable to move binary."
|
[ $? != 0 ] && die "Unable to move binary."
|
||||||
|
|
||||||
echo "Making $bin_target as executable ..."
|
echo "Making $bin_target as executable ..."
|
||||||
sudo chmod +x $bin_target
|
sudo chmod +x $bin_target/webhookd
|
||||||
[ $? != 0 ] && die "Unable to make the binary as executable."
|
[ $? != 0 ] && die "Unable to make the binary as executable."
|
||||||
|
|
||||||
echo "Installation done. Type 'webhookd' to start the server."
|
echo "Installation done. Type 'webhookd' to start the server."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user