Skip to content

Commit

Permalink
improve maintenance command by symlinking
Browse files Browse the repository at this point in the history
  • Loading branch information
buanet committed Nov 3, 2023
1 parent 375d192 commit bf87667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions debian12/scripts/iobroker_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit bf87667

Please sign in to comment.