mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
fix(espocrm): correct sed delimiter and ampersand escape in entrypoint patch
The Dockerfile RUN that appends '|| true' to the upstream create-admin-user line used '|' as the sed delimiter, which collides with the '||' in the replacement (sed: unknown option to s), and left the '&' in '2>&1' unescaped (sed expands it to the whole match). Use '#' as the delimiter and escape the ampersand as '\&'. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ce3c515eb3
commit
e272ae2d04
1 file changed
+1
-1
@@ -13,7 +13,7 @@ RUN cp -a /usr/src/espocrm/. /var/www/html/
|
||||
RUN sed -i 's|bin/command set-password admin |bin/command set-password "$ESPOCRM_ADMIN_USERNAME" |' /usr/local/bin/docker-entrypoint.sh \
|
||||
&& grep -qF 'set-password "$ESPOCRM_ADMIN_USERNAME"' /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
RUN sed -i 's|bin/command create-admin-user "$ESPOCRM_ADMIN_USERNAME" >/dev/null 2>&1|bin/command create-admin-user "$ESPOCRM_ADMIN_USERNAME" >/dev/null 2>&1 || true|' /usr/local/bin/docker-entrypoint.sh \
|
||||
RUN sed -i 's#bin/command create-admin-user "$ESPOCRM_ADMIN_USERNAME" >/dev/null 2>&1#bin/command create-admin-user "$ESPOCRM_ADMIN_USERNAME" >/dev/null 2>\&1 || true#' /usr/local/bin/docker-entrypoint.sh \
|
||||
&& grep -qF 'create-admin-user "$ESPOCRM_ADMIN_USERNAME" >/dev/null 2>&1 || true' /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
COPY ${ESPOCRM_SCRIPT_SEED_HOST_REL} ${ESPOCRM_SCRIPT_SEED_DOCKER}
|
||||
|
||||
Reference in new issue
Block a user