Skip to content

Commit

Permalink
ssh: Add config symlink for docs and backwards compat (home-assistant…
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Nov 15, 2023
1 parent c69685f commit dd7835d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ssh/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion ssh/config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions ssh/rootfs/etc/cont-init.d/profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit dd7835d

Please sign in to comment.