From dd7835d1f9547116c4f3897329f10ada6f3e6957 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 15 Nov 2023 11:24:32 +0100 Subject: [PATCH] ssh: Add config symlink for docs and backwards compat (#3304) --- ssh/CHANGELOG.md | 4 ++++ ssh/config.yaml | 2 +- ssh/rootfs/etc/cont-init.d/profile.sh | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ssh/CHANGELOG.md b/ssh/CHANGELOG.md index 8add6926b02..568f0536817 100644 --- a/ssh/CHANGELOG.md +++ b/ssh/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 9.8.1 + +- Add `/config` symlink to for backward and docs compatibility. + ## 9.8.0 - Please note: the `/config` folder has been renamed to `/homeassistant`. diff --git a/ssh/config.yaml b/ssh/config.yaml index 3e2bb3a1392..33423bd8f83 100644 --- a/ssh/config.yaml +++ b/ssh/config.yaml @@ -1,5 +1,5 @@ --- -version: 9.8.0 +version: 9.8.1 slug: ssh name: Terminal & SSH description: Allow logging in remotely to Home Assistant using SSH diff --git a/ssh/rootfs/etc/cont-init.d/profile.sh b/ssh/rootfs/etc/cont-init.d/profile.sh index cd458890b55..dcc844b9fa8 100755 --- a/ssh/rootfs/etc/cont-init.d/profile.sh +++ b/ssh/rootfs/etc/cont-init.d/profile.sh @@ -30,3 +30,10 @@ for dir in "${DIRECTORIES[@]}"; do ln -s "/${dir}" "${HOME}/${dir}" \ || bashio::log.warning "Failed linking common directory: ${dir}" done + +# Some links to "old" locations, to match documentation, +# backwards compatibility and musle memory +ln -s "/homeassistant" "/config" \ + || bashio::log.warning "Failed linking common directory: /config" +ln -s "/homeassistant" "${HOME}/config" \ + || bashio::log.warning "Failed linking common directory: ${HOME}/config"