浏览代码

Update TurnKey scripts
Disable the 'exit on error' behavior while checking for an IP.

tteckster 1 年之前
父节点
当前提交
c10678e251

+ 2 - 0
turnkey/turnkey-core.sh

@@ -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

+ 2 - 0
turnkey/turnkey-fileserver.sh

@@ -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

+ 2 - 0
turnkey/turnkey-gameserver.sh

@@ -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

+ 2 - 0
turnkey/turnkey-gitea.sh

@@ -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

+ 2 - 0
turnkey/turnkey-gitlab.sh

@@ -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

+ 2 - 0
turnkey/turnkey-mediaserver.sh

@@ -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

+ 2 - 0
turnkey/turnkey-nextcloud.sh

@@ -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

+ 2 - 0
turnkey/turnkey-observium.sh

@@ -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

+ 2 - 0
turnkey/turnkey-openvpn.sh

@@ -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

+ 2 - 0
turnkey/turnkey-owncloud.sh

@@ -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

+ 2 - 0
turnkey/turnkey-torrentserver.sh

@@ -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

+ 2 - 0
turnkey/turnkey-wordpress.sh

@@ -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

+ 2 - 0
turnkey/turnkey-zoneminder.sh

@@ -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