Skip to content

Commit

Permalink
Add general user init hooks to onCreate and postStart
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernAtBosch committed Sep 9, 2024
1 parent bd7c69d commit 4c1401c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup/src/common/scripts/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ sudo chown -R $(whoami) $HOME
if [[ -z "${VELOCITAS_OFFLINE}" ]]; then
.devcontainer/scripts/configure-codespaces.sh
.devcontainer/scripts/upgrade-cli.sh
elif [[ -x .devcontainer/scripts/local-setup.sh ]]; then
.devcontainer/scripts/local-setup.sh
fi

# Call user initialization hook if present
if [[ -x .devcontainer/scripts/onCreateUserHook.sh ]]; then
.devcontainer/scripts/onCreateUserHook.sh
fi

echo "#######################################################"
Expand Down
5 changes: 5 additions & 0 deletions setup/src/common/scripts/postStartCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@
# SPDX-License-Identifier: Apache-2.0

.devcontainer/scripts/upgrade-cli.sh

# Call user initialization hook if present
if [[ -x .devcontainer/scripts/onPostStartUserHook.sh ]]; then
.devcontainer/scripts/onPostStartUserHook.sh
fi

0 comments on commit 4c1401c

Please sign in to comment.