From 92821ab262211c68b3e6beddf5adb86a076b01b5 Mon Sep 17 00:00:00 2001 From: buanet Date: Tue, 14 Nov 2023 20:29:17 +0100 Subject: [PATCH] improve shebang in scripts --- CHANGELOG.md | 1 + debian12/scripts/healthcheck.sh | 2 +- debian12/scripts/iobroker.sh | 2 +- debian12/scripts/setup_avahi.sh | 2 +- debian12/scripts/setup_iob_db.sh | 2 +- debian12/scripts/setup_packages.sh | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d9844b..3a8bcaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Changelog ### v9.1.0-beta.2 (coming soon) +* improve shebang in scripts for downgrade and portability * enhance logging/ fix typos * add env PACKAGES_UPDATE and remove automatic package updates on first container start * improve setuid/setgid handling during startup ([#397](https://github.com/buanet/ioBroker.docker/issues/397)) diff --git a/debian12/scripts/healthcheck.sh b/debian12/scripts/healthcheck.sh index 5c95005..5c57498 100644 --- a/debian12/scripts/healthcheck.sh +++ b/debian12/scripts/healthcheck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Script checks health of running container diff --git a/debian12/scripts/iobroker.sh b/debian12/scripts/iobroker.sh index edcb4d0..b02e1fc 100644 --- a/debian12/scripts/iobroker.sh +++ b/debian12/scripts/iobroker.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # run iob fix iob_fix () { diff --git a/debian12/scripts/setup_avahi.sh b/debian12/scripts/setup_avahi.sh index 26c7cd5..34499a8 100644 --- a/debian12/scripts/setup_avahi.sh +++ b/debian12/scripts/setup_avahi.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ -e /usr/sbin/avahi-daemon ] && [ -e /var/run/dbus ] then diff --git a/debian12/scripts/setup_iob_db.sh b/debian12/scripts/setup_iob_db.sh index df1d679..7a20fe8 100644 --- a/debian12/scripts/setup_iob_db.sh +++ b/debian12/scripts/setup_iob_db.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # reading env debug=$DEBUG diff --git a/debian12/scripts/setup_packages.sh b/debian12/scripts/setup_packages.sh index 0a4df46..4a2e579 100644 --- a/debian12/scripts/setup_packages.sh +++ b/debian12/scripts/setup_packages.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # bash strict mode set -euo pipefail