This commit is contained in:
Richard Sperry 2025-04-17 14:50:40 -07:00
parent ffb56b943a
commit fa91cbda66
4 changed files with 7 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
todo.txt todo.txt
addon-vscode.code-workspace
.devcontainer/ .devcontainer/
.vscode/ .vscode/

View file

@ -21,6 +21,8 @@ hassio_role: manager
homeassistant_api: true homeassistant_api: true
full_access: true full_access: true
map: map:
- addons:rw
- all_addon_configs:rw
- backup:rw - backup:rw
- data:rw - data:rw
- homeassistant_config:rw - homeassistant_config:rw

View file

@ -13,7 +13,7 @@ readonly CODE_SERVER_VSCODE_DIR="$CODE_SERVER_WORKSPACE_DIR/.vscode"
readonly CODE_SERVER_VSCODE_TASKS="$CODE_SERVER_VSCODE_DIR/tasks.json" readonly CODE_SERVER_VSCODE_TASKS="$CODE_SERVER_VSCODE_DIR/tasks.json"
readonly CUSTOM_BASH_SCRIPTS_PATH="/data/vscode/custom_boot_scripts" readonly CUSTOM_BASH_SCRIPTS_PATH="/data/vscode/custom_boot_scripts"
readonly -a DIRECTORIES=(backup config media share ssl) readonly -a DIRECTORIES=(backup homeassistant media share ssl)
readonly GIT_USER_PATH=/data/git readonly GIT_USER_PATH=/data/git
readonly SSH_USER_PATH=/data/.ssh readonly SSH_USER_PATH=/data/.ssh

View file

@ -16,6 +16,7 @@ run (){
fi fi
git_src git_src
show_vars
export -f mqtt_push export -f mqtt_push
} }
@ -50,7 +51,7 @@ mqtt_push() {
} }
show_vars() { show_vars() {
# echos all env vars # echos all env vars to the log
bashio::log.info "ENV VARS:" bashio::log.info "ENV VARS:"
set -o posix ; set | while IFS='' read -r line set -o posix ; set | while IFS='' read -r line
do do