forked from forkanization/Proxmox-arm64
push various script changes done during merge
This commit is contained in:
@@ -29,10 +29,10 @@ cd /tmp
|
||||
BASE_URL="https://updates.networkoptix.com/default/index.html"
|
||||
RELEASE=$(curl -fsSL "$BASE_URL" | grep -oP '(?<=<b>)[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(?=</b>)' | head -n 1)
|
||||
DETAIL_PAGE=$(curl -fsSL "$BASE_URL#note_$RELEASE")
|
||||
DOWNLOAD_URL=$(echo "$DETAIL_PAGE" | grep -oP "https://updates.networkoptix.com/default/$RELEASE/linux/nxwitness-server-[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-linux_x64\.deb" | head -n 1)
|
||||
curl -fsSL "$DOWNLOAD_URL" -o ""nxwitness-server-$RELEASE-linux_x64.deb""
|
||||
DOWNLOAD_URL=$(echo "$DETAIL_PAGE" | grep -oP "https://updates.networkoptix.com/default/$RELEASE/arm/nxwitness-server-[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-linux_arm64\.deb" | head -n 1)
|
||||
curl -fsSL "$DOWNLOAD_URL" -o ""nxwitness-server-$RELEASE-linux_arm64.deb""
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
$STD dpkg -i nxwitness-server-$RELEASE-linux_x64.deb
|
||||
$STD dpkg -i nxwitness-server-$RELEASE-linux_arm64.deb
|
||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||
msg_ok "Setup Nx Witness"
|
||||
|
||||
@@ -40,7 +40,7 @@ motd_ssh
|
||||
customize
|
||||
|
||||
msg_info "Cleaning up"
|
||||
rm -f /tmp/nxwitness-server-$RELEASE-linux_x64.deb
|
||||
rm -f /tmp/nxwitness-server-$RELEASE-linux_arm64.deb
|
||||
$STD apt-get -y autoremove
|
||||
$STD apt-get -y autoclean
|
||||
msg_ok "Cleaned"
|
||||
|
||||
Reference in New Issue
Block a user