mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 18:51:23 +00:00
devenv
This commit is contained in:
parent
8a4d6c092f
commit
ebae938644
2 changed files with 14 additions and 11 deletions
|
@ -37,7 +37,10 @@ for dir in "${DIRECTORIES[@]}"; do
|
|||
bashio::log.warning "Failed linking common directory: ${dir}"
|
||||
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
|
||||
CODE_SERVER_CONFIG=$(bashio::config 'vscode_config_path')
|
||||
if ! bashio::fs.directory_exists "${CODE_SERVER_CONFIG}"; then
|
||||
|
|
|
@ -10,17 +10,17 @@ readonly SSH_USER_PATH=/data/.ssh
|
|||
readonly ZSH_HISTORY_FILE=/root/.zsh_history
|
||||
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}" "/SERVER/${dir}" ||
|
||||
bashio::log.warning "Failed linking common directory: ${dir}"
|
||||
done
|
||||
# # Links some common directories to the user's home folder for convenience
|
||||
# for dir in "${DIRECTORIES[@]}"; do
|
||||
# ln -sn "/${dir}" "/${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"
|
||||
# # 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"
|
||||
|
||||
# Store SSH settings in add-on data folder
|
||||
if ! bashio::fs.directory_exists "${SSH_USER_PATH}"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue