From faf4f02f092118968fb3b6b30ded74573326d2e4 Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Thu, 4 Jun 2026 14:24:09 +0200 Subject: [PATCH] fix(packaging): ignore tedge refresh-bridges at runtime It can fail if the service manager is not active which is the case when running under docker at build time. --- scripts/deb/postinst | 2 +- scripts/deb/postrm | 2 +- scripts/rpm/postinst | 2 +- scripts/rpm/postrm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/deb/postinst b/scripts/deb/postinst index 3ddb3d8..c62c823 100644 --- a/scripts/deb/postinst +++ b/scripts/deb/postinst @@ -1,7 +1,7 @@ #!/bin/sh set -e -tedge refresh-bridges +tedge refresh-bridges ||: # Automatically added by thin-edge.io if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then diff --git a/scripts/deb/postrm b/scripts/deb/postrm index f174bb0..0a3e20f 100644 --- a/scripts/deb/postrm +++ b/scripts/deb/postrm @@ -22,5 +22,5 @@ fi if [ "$1" = "remove" ]; then tedge config remove c8y.smartrest.templates modbus - tedge refresh-bridges + tedge refresh-bridges ||: fi diff --git a/scripts/rpm/postinst b/scripts/rpm/postinst index c99faf2..8784257 100644 --- a/scripts/rpm/postinst +++ b/scripts/rpm/postinst @@ -1,7 +1,7 @@ #!/bin/sh set -e -tedge refresh-bridges +tedge refresh-bridges ||: # Automatically added by thin-edge.io if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then diff --git a/scripts/rpm/postrm b/scripts/rpm/postrm index 8ebd837..9aed137 100644 --- a/scripts/rpm/postrm +++ b/scripts/rpm/postrm @@ -15,5 +15,5 @@ fi if [ "$1" = "0" ]; then tedge config remove c8y.smartrest.templates modbus - tedge refresh-bridges + tedge refresh-bridges ||: fi