mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
fix: Update location
This commit is contained in:
parent
1b75bd3c44
commit
d5637e8da0
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
VERSION="7"
|
VERSION="8"
|
||||||
HEADER="VirtualDSM Agent"
|
HEADER="VirtualDSM Agent"
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
@ -38,7 +38,7 @@ function downloadUpdate {
|
|||||||
|
|
||||||
# Auto update the agent
|
# Auto update the agent
|
||||||
|
|
||||||
URL="https://raw.githubusercontent.com/kroese/virtual-dsm/master/agent/agent.sh"
|
URL="https://raw.githubusercontent.com/vdsm/virtual-dsm/master/agent/agent.sh"
|
||||||
|
|
||||||
remote_size=$(curl -sIk -m 4 "${URL}" | grep -i "content-length:" | tr -d " \t" | cut -d ':' -f 2)
|
remote_size=$(curl -sIk -m 4 "${URL}" | grep -i "content-length:" | tr -d " \t" | cut -d ':' -f 2)
|
||||||
remote_size=${remote_size//$'\r'}
|
remote_size=${remote_size//$'\r'}
|
||||||
@ -100,6 +100,8 @@ function installPackages {
|
|||||||
trap finish SIGINT SIGTERM
|
trap finish SIGINT SIGTERM
|
||||||
|
|
||||||
ts=$(date +%s%N)
|
ts=$(date +%s%N)
|
||||||
|
|
||||||
|
echo ""
|
||||||
echo "❯ Started $HEADER v$VERSION..."
|
echo "❯ Started $HEADER v$VERSION..."
|
||||||
|
|
||||||
checkNMI
|
checkNMI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user