This commit is contained in:
Richard Sperry 2025-04-16 23:25:33 -07:00
parent 72a4bae085
commit a2bcc30d84
3 changed files with 18 additions and 1 deletions

View file

@ -20,10 +20,14 @@ hassio_api: true
hassio_role: manager
homeassistant_api: true
map:
- type: addons
read_only: false
- type: backup
read_only: false
- type: data
read_only: false
- type: homeassistant_config
read_only: false
- type: media
read_only: false
- type: share

View file

@ -10,7 +10,6 @@ bashio::log.info "Initalizing code-server configs"
source "/etc/s6-overlay/s6-rc.d/paths.sh"
# List of previous config hashes, to allow upgrade "default" configs.
readonly CUSTOM_BASH_SCRIPTS_PATH="/data/custom"
run() {
if [ ! -d "$CUSTOM_BASH_SCRIPTS_PATH" ]; then
@ -19,6 +18,11 @@ run() {
bashio::exit.nok "Could not create persistent storage folder."
fi
if [[ ! -e "$CUSTOM_BASH_SCRIPTS_PATH"/custom-scripts.md ]]; then
bashio::log.warning "custom-scripts.md does not exist."
cp "$DEFAULT_FILES_PATH"/core/custom-scripts.md "$CUSTOM_BASH_SCRIPTS_PATH"/custom-scripts.md
fi
if [[ ! -e "$CUSTOM_BASH_SCRIPTS_PATH"/custom-template.sh ]]; then
bashio::log.warning "custom-template.sh does not exist."
cp "$DEFAULT_FILES_PATH"/core/custom-template.sh "$CUSTOM_BASH_SCRIPTS_PATH"/custom-template.sh

View file

@ -0,0 +1,9 @@
# Custom Scripts
This directory is for shell scripts to be ran at boot time so you can add functionality if needed.
## custom-template.sh
This script is an example of a script that has an on/off switch that can allow you to add extra functionality when needed. To run it,
change ENABLED to true and restart the VS Code server instance.