mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
Add support for public add-on configuration access (#732)
This commit is contained in:
parent
982780c9b2
commit
579652261b
2 changed files with 11 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
# Home Assistant Community Add-on: Studio Code Server
|
||||
# Persists user settings and installs custom user packages.
|
||||
# ==============================================================================
|
||||
readonly -a DIRECTORIES=(addons backup config media share ssl)
|
||||
readonly -a DIRECTORIES=(addon_configs addons backup homeassistant media share ssl)
|
||||
readonly GIT_USER_PATH=/data/git
|
||||
readonly SSH_USER_PATH=/data/.ssh
|
||||
readonly ZSH_HISTORY_FILE=/root/.zsh_history
|
||||
|
@ -16,6 +16,12 @@ for dir in "${DIRECTORIES[@]}"; do
|
|||
|| bashio::log.warning "Failed linking common directory: ${dir}"
|
||||
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: ${dir}"
|
||||
ln -s "/homeassistant" "${HOME}/config" \
|
||||
|| bashio::log.warning "Failed linking common directory: ${dir}
|
||||
|
||||
# Store SSH settings in add-on data folder
|
||||
if ! bashio::fs.directory_exists "${SSH_USER_PATH}"; then
|
||||
mkdir -p "${SSH_USER_PATH}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue