This commit is contained in:
Richard Sperry 2025-04-17 13:03:03 -07:00
parent a33b74b86c
commit 1a54b2667b
3 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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"

View file

@ -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