mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
Update TurnKey scripts
Disable the 'exit on error' behavior while checking for an IP.
This commit is contained in:
parent
3b1560fa63
commit
c10678e251
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
@ -164,6 +164,7 @@ pct start "$CTID"
|
||||
sleep 5
|
||||
|
||||
# Get container IP
|
||||
set +e
|
||||
max_attempts=5
|
||||
attempt=1
|
||||
IP=""
|
||||
@ -183,6 +184,7 @@ if [[ -z $IP ]]; then
|
||||
IP="NOT FOUND"
|
||||
fi
|
||||
|
||||
set -e
|
||||
# Start Proxmox VE Monitor-All if available
|
||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||
systemctl start ping-instances.service
|
||||
|
Loading…
Reference in New Issue
Block a user