Skip to content

Commit 705b9c9

Browse files
committed
fix local lifecycle scripts
1 parent 8d13dae commit 705b9c9

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

uceap-drupal-dev-on-create

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,8 @@ chmod g+s web/sites/default/files
5151
# Setup VS Code
5252
mkdir -p .vscode
5353
cp /usr/local/etc/uceap-dev/vscode-launch.json .vscode/launch.json
54+
55+
# Run local devcontainer lifecycle scripts
56+
if [ -x .devcontainer/onCreate.sh ]; then
57+
.devcontainer/onCreate.sh
58+
fi

uceap-drupal-dev-post-create

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ sudo a2enconf global-servername
2020
mkdir -p drush
2121
export HTTP_ADDRESS
2222
build/templater.sh /usr/local/etc/uceap-dev/example.drush.yml > drush/drush.yml
23+
24+
# Run local devcontainer lifecycle scripts
25+
if [ -x .devcontainer/postCreate.sh ]; then
26+
.devcontainer/postCreate.sh
27+
fi

uceap-drupal-dev-post-start

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ sudo service redis-server start
66

77
# this seems to more reliably get the private proxy working
88
sudo apache2ctl stop
9-
sudo apache2ctl start
9+
sudo apache2ctl start
10+
11+
# Run local devcontainer lifecycle scripts
12+
if [ -x .devcontainer/postStart.sh ]; then
13+
.devcontainer/postStart.sh
14+
fi

uceap-drupal-dev-update-content

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,9 @@ umask 002
2828

2929
sudo service mariadb start
3030
build/db-rebuild.sh database.sql.gz
31-
rm database.sql.gz
31+
rm database.sql.gz
32+
33+
# Run local devcontainer lifecycle scripts
34+
if [ -x .devcontainer/updateContent.sh ]; then
35+
.devcontainer/updateContent.sh
36+
fi

0 commit comments

Comments
 (0)