This commit is contained in:
Richard Sperry 2025-04-16 12:29:27 -07:00
parent 8a4d6c092f
commit ebae938644
2 changed files with 14 additions and 11 deletions

View file

@ -37,7 +37,10 @@ for dir in "${DIRECTORIES[@]}"; do
bashio::log.warning "Failed linking common directory: ${dir}" bashio::log.warning "Failed linking common directory: ${dir}"
done done
# Ensure config path exists ln -sn "/config" "/SERVER/config" ||
bashio::log.warning "Failed linking common directory: /homeassistant"
Ensure config path exists
if bashio::config.has_value "vscode_config_path"; then if bashio::config.has_value "vscode_config_path"; then
CODE_SERVER_CONFIG=$(bashio::config 'vscode_config_path') CODE_SERVER_CONFIG=$(bashio::config 'vscode_config_path')
if ! bashio::fs.directory_exists "${CODE_SERVER_CONFIG}"; then if ! bashio::fs.directory_exists "${CODE_SERVER_CONFIG}"; then

View file

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