This commit is contained in:
Richard Sperry 2025-04-15 21:03:25 -07:00
parent e406bbbce5
commit 810f8239cb
2 changed files with 5 additions and 12 deletions

View file

@ -22,25 +22,18 @@ homeassistant_api: true
map:
- type: addons
read_only: false
path: /SERVER/addons
- type: all_addon_configs
read_only: false
path: /SERVER/all_addon_configs
- type: backup
read_only: false
path: /SERVER/backup
- type: homeassistant_config
read_only: false
path: /SERVER/config
- type: media
read_only: false
path: /SERVER/media
- type: share
read_only: false
path: /SERVER/share
- type: ssl
read_only: false
path: /SERVER/ssl
services:
- mysql:want

View file

@ -12,15 +12,15 @@ readonly ZSH_HISTORY_PERSISTANT_FILE=/data/.zsh_history
# Links some common directories to the user's home folder for convenience
for dir in "${DIRECTORIES[@]}"; do
ln -sn "/${dir}" "${HOME}/${dir}" ||
ln -sn "/${dir}" "/SERVER/${dir}" ||
bashio::log.warning "Failed linking common directory: ${dir}"
done
# Some links to old locations, to not mess with the user's muscle memory
# ln -sn "/config" "${HOME}/config" \
# || bashio::log.warning "Failed linking common directory: ${HOME}/config"
# ln -sn "/config" "/homeassistant" \
# || bashio::log.warning "Failed linking common directory: /homeassistant"
ln -sn "/config" "${HOME}/config" ||
bashio::log.warning "Failed linking common directory: ${HOME}/config"
ln -sn "/config" "/homeassistant" ||
bashio::log.warning "Failed linking common directory: /homeassistant"
# Store SSH settings in add-on data folder
if ! bashio::fs.directory_exists "${SSH_USER_PATH}"; then