From 4614b8c41a45670802ae63cb0db9a49aa020308c Mon Sep 17 00:00:00 2001 From: buanet Date: Tue, 10 Oct 2023 20:49:48 +0200 Subject: [PATCH] fix issue with apt repo failing --- debian12/scripts/iobroker_startup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/debian12/scripts/iobroker_startup.sh b/debian12/scripts/iobroker_startup.sh index efe0957..c764160 100644 --- a/debian12/scripts/iobroker_startup.sh +++ b/debian12/scripts/iobroker_startup.sh @@ -133,7 +133,11 @@ if [[ -f /opt/.docker_config/.first_run ]]; then if [[ "$offlinemode" = "true" ]]; then echo "OFFLINE_MODE is \"true\". Skipping Linux package updates on first run." else - bash /opt/scripts/setup_packages.sh -update + if bash /opt/scripts/setup_packages.sh -update; then + echo " " + else + echo "Error: Updating failed." + fi fi echo " " # Installing packages from ENV @@ -141,7 +145,11 @@ if [[ -f /opt/.docker_config/.first_run ]]; then echo "PACKAGES is set, but OFFLINE_MODE is \"true\". Skipping Linux package installation." elif [[ "$packages" != "" ]]; then echo "PACKAGES is set. Installing the following additional Linux packages: ""$packages" - bash /opt/scripts/setup_packages.sh -install + if bash /opt/scripts/setup_packages.sh -install; then + echo " " + else + echo "Error: Installation failed." + fi fi echo " " # Register maintenance script