Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Update add-on paths, map directly to /config #864

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions vscode/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ hassio_api: true
hassio_role: manager
homeassistant_api: true
map:
- addons:rw
- all_addon_configs:rw
- backup:rw
- homeassistant_config:rw
- media:rw
- share:rw
- ssl:rw
- type: addons
read_only: false
- type: all_addon_configs
read_only: false
- type: backup
read_only: false
- type: homeassistant_config
read_only: false
path: /config
- type: media
read_only: false
- type: share
read_only: false
- type: ssl
read_only: false
services:
- mysql:want
- mqtt:want
Expand Down
1 change: 0 additions & 1 deletion vscode/rootfs/etc/s6-overlay/s6-rc.d/code-server/finish
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Home Assistant Community Add-on: Studio Code Server
# Take down the S6 supervision tree when the code server fails
# ==============================================================================
declare exit_code
readonly exit_code_container=$(</run/s6-linux-init-container-results/exitcode)
readonly exit_code_service="${1}"
readonly exit_code_signal="${2}"
Expand Down
4 changes: 1 addition & 3 deletions vscode/rootfs/etc/s6-overlay/s6-rc.d/init-user/run
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ for dir in "${DIRECTORIES[@]}"; do
done

# Some links to old locations, to not mess with the user's muscle memory
ln -s "/homeassistant" "/config" \
|| bashio::log.warning "Failed linking common directory: /config"
ln -s "/homeassistant" "${HOME}/config" \
ln -s "/config" "${HOME}/config" \
|| bashio::log.warning "Failed linking common directory: ${HOME}/config"

# Store SSH settings in add-on data folder
Expand Down