From bf87667fc0c0644fa31e01ebeb7b5c6e7cae79f4 Mon Sep 17 00:00:00 2001 From: buanet Date: Fri, 3 Nov 2023 20:37:49 +0100 Subject: [PATCH] improve maintenance command by symlinking --- CHANGELOG.md | 3 ++- debian12/scripts/iobroker_startup.sh | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 924593d..badb3d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Changelog -### v9.1.0-beta.1 (coming soon) +### v9.1.0-beta.1 (03.11.2023) +* improve maintenance command by symlinking ([#390](https://github.com/buanet/ioBroker.docker/issues/390)) * fix restore/ adding backup file selection ([#394](https://github.com/buanet/ioBroker.docker/issues/394)) * fix calling iob start|stop with parameters * enhance logging in iobroker_startup.sh diff --git a/debian12/scripts/iobroker_startup.sh b/debian12/scripts/iobroker_startup.sh index c751b26..617b3dc 100644 --- a/debian12/scripts/iobroker_startup.sh +++ b/debian12/scripts/iobroker_startup.sh @@ -146,9 +146,9 @@ if [[ -f /opt/.docker_config/.first_run ]]; then echo " " # Register maintenance script echo -n "Registering maintenance script as command... " - echo "alias maintenance='/opt/scripts/maintenance.sh'" >> /etc/bash.bashrc - echo "alias maint='/opt/scripts/maintenance.sh'" >> /etc/bash.bashrc - echo "alias m='/opt/scripts/maintenance.sh'" >> /etc/bash.bashrc + ln -s /opt/scripts/maintenance.sh /bin/maintenance + ln -s /opt/scripts/maintenance.sh /bin/maint + ln -s /opt/scripts/maintenance.sh /bin/m echo "Done." else echo "This is not the first run of this container. Skipping first run preparation."