From b048364a849ea866d2f6673cfcc6902d26248008 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 26 Nov 2021 06:37:29 +0100 Subject: [PATCH] Error Mgt --- .../root/etc/cont-init.d/00-aaa_dockerfile_backup.sh | 5 +++-- cloudcommander/rootfs/scripts/00-aaa_dockerfile_backup.sh | 5 +++-- .../rootfs/scripts/00-aaa_dockerfile_backup.sh | 5 +++-- .../rootfs/scripts/00-aaa_dockerfile_backup.sh | 5 +++-- filebrowser/rootfs/scripts/00-aaa_dockerfile_backup.sh | 5 +++-- gazpar2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh | 5 +++-- .../root/etc/cont-init.d/00-aaa_dockerfile_backup.sh | 5 +++-- nextcloud/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh | 5 +++-- .../rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh | 5 +++-- .../rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh | 5 +++-- webtrees/rootfs/script/00-aaa_dockerfile_backup.sh | 5 +++-- 11 files changed, 33 insertions(+), 22 deletions(-) diff --git a/booksonic_air/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh b/booksonic_air/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh index f5911b6dc..becb302f9 100644 --- a/booksonic_air/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh +++ b/booksonic_air/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh @@ -26,6 +26,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/cloudcommander/rootfs/scripts/00-aaa_dockerfile_backup.sh b/cloudcommander/rootfs/scripts/00-aaa_dockerfile_backup.sh index c3526f46c..5cf83148e 100644 --- a/cloudcommander/rootfs/scripts/00-aaa_dockerfile_backup.sh +++ b/cloudcommander/rootfs/scripts/00-aaa_dockerfile_backup.sh @@ -27,6 +27,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/enedisgateway2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh b/enedisgateway2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh index 35d965a1e..fdcd3c744 100644 --- a/enedisgateway2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh +++ b/enedisgateway2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh @@ -25,6 +25,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/enedisgateway2mqtt_dev/rootfs/scripts/00-aaa_dockerfile_backup.sh b/enedisgateway2mqtt_dev/rootfs/scripts/00-aaa_dockerfile_backup.sh index 1e913b89f..d4415f0ab 100644 --- a/enedisgateway2mqtt_dev/rootfs/scripts/00-aaa_dockerfile_backup.sh +++ b/enedisgateway2mqtt_dev/rootfs/scripts/00-aaa_dockerfile_backup.sh @@ -25,6 +25,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/filebrowser/rootfs/scripts/00-aaa_dockerfile_backup.sh b/filebrowser/rootfs/scripts/00-aaa_dockerfile_backup.sh index acb432df7..b4d87bbc9 100644 --- a/filebrowser/rootfs/scripts/00-aaa_dockerfile_backup.sh +++ b/filebrowser/rootfs/scripts/00-aaa_dockerfile_backup.sh @@ -33,6 +33,7 @@ if [ ! -f "/usr/bin/bashio" ]; then ######################################## mkdir -p -m 777 /config/filebrowser || true - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/gazpar2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh b/gazpar2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh index f5e4b4a33..dd5398702 100644 --- a/gazpar2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh +++ b/gazpar2mqtt/rootfs/scripts/00-aaa_dockerfile_backup.sh @@ -23,6 +23,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/jellyfin_test/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh b/jellyfin_test/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh index c80398f44..9b11e72fe 100644 --- a/jellyfin_test/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh +++ b/jellyfin_test/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh @@ -32,6 +32,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/nextcloud/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh b/nextcloud/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh index 2ae2a634c..5033f26b9 100644 --- a/nextcloud/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh +++ b/nextcloud/root/etc/cont-init.d/00-aaa_dockerfile_backup.sh @@ -36,6 +36,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/papermerge/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh b/papermerge/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh index 6bf125fdb..dc082a01a 100644 --- a/papermerge/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh +++ b/papermerge/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh @@ -34,6 +34,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/qbittorrent/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh b/qbittorrent/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh index 8082222cf..227cf1879 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh @@ -59,6 +59,7 @@ if [ ! -f "/usr/bin/bashio" ]; then echo 'WebUI\LocalHostAuth=false' >>/defaults/qBittorrent.conf \ >>/defaults/qBittorrent.conf - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi diff --git a/webtrees/rootfs/script/00-aaa_dockerfile_backup.sh b/webtrees/rootfs/script/00-aaa_dockerfile_backup.sh index 1629fefd7..52b81ab2e 100644 --- a/webtrees/rootfs/script/00-aaa_dockerfile_backup.sh +++ b/webtrees/rootfs/script/00-aaa_dockerfile_backup.sh @@ -29,6 +29,7 @@ if [ ! -f "/usr/bin/bashio" ]; then mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio - ) &>/dev/null - echo "Bashio installed" + ) >/dev/null 2>/aaa && \ + echo "Bashio installed" | cat /aaa + fi