From b791608f05b4645b754dca1dd6ef95f9aa8faed0 Mon Sep 17 00:00:00 2001 From: Robin Alexander Date: Fri, 3 Apr 2026 09:09:14 +0200 Subject: [PATCH] Fix sed instruction when adapting file .htaccess for APP_PATH --- bin/entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index 3bdb4d7..e10395d 100644 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -118,11 +118,11 @@ if [ -n "${APP_PATH}" ]; then popd fi - ## Adapt the .htaccess file + ## Modify the .htaccess file sed \ - -i /var/www/"${APP_PATH}"/.htaccess \ - -e "s:\(RewriteCond .*\)/Web/:\1\.\*/Web/:" \ - -e "s:\(RewriteRule .*\) /Web/:\1 /${APP_PATH}/Web/:" + -i /var/www/html/.htaccess \ + -e "s:\(RewriteCond .*\)/Web:\1/${APP_PATH}/Web:" \ + -e "s:\(RewriteRule .*\)/Web:\1/${APP_PATH}/Web:" fi # Send log files to /dev/stdout as background jobs