Use curl instead of wget
This commit is contained in:
@@ -60,7 +60,7 @@ msg_ok "Set up Database"
|
||||
msg_info "Setup healthchecks"
|
||||
cd /opt
|
||||
RELEASE=$(curl -s https://api.github.com/repos/healthchecks/healthchecks/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||
wget -q "https://github.com/healthchecks/healthchecks/archive/refs/tags/v${RELEASE}.zip"
|
||||
curl -fsSL "https://github.com/healthchecks/healthchecks/archive/refs/tags/v${RELEASE}.zip"
|
||||
unzip -q v${RELEASE}.zip
|
||||
mv healthchecks-${RELEASE} /opt/healthchecks
|
||||
cd /opt/healthchecks
|
||||
@@ -127,4 +127,4 @@ msg_info "Cleaning up"
|
||||
rm -rf /opt/v${RELEASE}.zip
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
msg_ok "Cleaned"
|
||||
|
||||
Reference in New Issue
Block a user