mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-03 02:31:34 +00:00
devenv
This commit is contained in:
parent
a33b74b86c
commit
1a54b2667b
3 changed files with 9 additions and 0 deletions
|
@ -93,6 +93,7 @@ RUN find /usr/local \
|
|||
HEALTHCHECK \
|
||||
CMD curl --fail http://127.0.0.1:1337/healthz || exit 1
|
||||
|
||||
|
||||
# Build Final image
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
|
|
|
@ -28,6 +28,12 @@ run() {
|
|||
cp "$DEFAULT_FILES_PATH"/core/custom-template.sh "$CUSTOM_BASH_SCRIPTS_PATH"/custom-template.sh
|
||||
fi
|
||||
|
||||
if [ ! -e "$USER_CUSTOM_DIR" ]; then
|
||||
bashio::log.warning "USER_CUSTOM_DIR path does not exist. Creating..."
|
||||
mkdir -p "$USER_CUSTOM_DIR" ||
|
||||
bashio::exit.nok "Could not create persistent storage folder."
|
||||
fi
|
||||
|
||||
if [ "$(ls -A "$CUSTOM_BASH_SCRIPTS_PATH")" ]; then
|
||||
for script in "${CUSTOM_BASH_SCRIPTS_PATH}"/*.sh/!"$pathsfile"; do
|
||||
echo "Running custom script: $script"
|
||||
|
|
|
@ -19,3 +19,5 @@ readonly GIT_USER_PATH=/data/git
|
|||
readonly SSH_USER_PATH=/data/.ssh
|
||||
readonly ZSH_HISTORY_FILE=/root/.zsh_history
|
||||
readonly ZSH_HISTORY_PERSISTANT_FILE=/data/.zsh_history
|
||||
|
||||
readonly USER_CUSTOM_DIR=$CUSTOM_BASH_SCRIPTS_PATH/storage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue