Skip to content

Commit 73fad1b

Browse files
coliseeRobin Alexander
andauthored
Fix sed instruction when adapting file .htaccess for APP_PATH (#193)
Co-authored-by: Robin Alexander <colisee@hotmail>
1 parent 508009e commit 73fad1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ if [ -n "${APP_PATH}" ]; then
118118
popd
119119
fi
120120

121-
## Adapt the .htaccess file
121+
## Modify the .htaccess file
122122
sed \
123-
-i /var/www/"${APP_PATH}"/.htaccess \
124-
-e "s:\(RewriteCond .*\)/Web/:\1\.\*/Web/:" \
125-
-e "s:\(RewriteRule .*\) /Web/:\1 /${APP_PATH}/Web/:"
123+
-i /var/www/html/.htaccess \
124+
-e "s:\(RewriteCond .*\)/Web:\1/${APP_PATH}/Web:" \
125+
-e "s:\(RewriteRule .*\)/Web:\1/${APP_PATH}/Web:"
126126
fi
127127

128128
# Send log files to /dev/stdout as background jobs

0 commit comments

Comments
 (0)