Skip to content

Commit ddad6c1

Browse files
committed
fix: cd to APP_ROOT before executing init scripts
1 parent dc4e84b commit ddad6c1

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

latest/php8.1/apache/s6-overlay/scripts/init-templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ process_templates() {
3434
}
3535

3636
exec_init_scripts() {
37+
cd "${APP_ROOT:-/var/www/html}"
3738
shopt -s nullglob
3839
for f in /docker-entrypoint-init.d/*; do
3940
echo "Running init script: $f"

latest/php8.2/apache/s6-overlay/scripts/init-templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ process_templates() {
3434
}
3535

3636
exec_init_scripts() {
37+
cd "${APP_ROOT:-/var/www/html}"
3738
shopt -s nullglob
3839
for f in /docker-entrypoint-init.d/*; do
3940
echo "Running init script: $f"

latest/php8.3/apache/s6-overlay/scripts/init-templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ process_templates() {
3434
}
3535

3636
exec_init_scripts() {
37+
cd "${APP_ROOT:-/var/www/html}"
3738
shopt -s nullglob
3839
for f in /docker-entrypoint-init.d/*; do
3940
echo "Running init script: $f"

latest/php8.4/apache/s6-overlay/scripts/init-templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ process_templates() {
3434
}
3535

3636
exec_init_scripts() {
37+
cd "${APP_ROOT:-/var/www/html}"
3738
shopt -s nullglob
3839
for f in /docker-entrypoint-init.d/*; do
3940
echo "Running init script: $f"

s6-overlay/scripts/init-templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ process_templates() {
3434
}
3535

3636
exec_init_scripts() {
37+
cd "${APP_ROOT:-/var/www/html}"
3738
shopt -s nullglob
3839
for f in /docker-entrypoint-init.d/*; do
3940
echo "Running init script: $f"

0 commit comments

Comments
 (0)