From 6b4fbec2d6c4b410572c1fab71478a333e30146a Mon Sep 17 00:00:00 2001 From: Kirilov Date: Tue, 9 Apr 2024 14:29:19 +0300 Subject: [PATCH] fix opencart admin urls on OPENCART_ENABLE_HTTPS=true Signed-off-by: Kirilov --- .../4/debian-12/rootfs/opt/bitnami/scripts/libopencart.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitnami/opencart/4/debian-12/rootfs/opt/bitnami/scripts/libopencart.sh b/bitnami/opencart/4/debian-12/rootfs/opt/bitnami/scripts/libopencart.sh index a4bf26d166274..efd103dc16513 100644 --- a/bitnami/opencart/4/debian-12/rootfs/opt/bitnami/scripts/libopencart.sh +++ b/bitnami/opencart/4/debian-12/rootfs/opt/bitnami/scripts/libopencart.sh @@ -326,6 +326,8 @@ opencart_update_hostname() { opencart_conf_set HTTP_SERVER "${https_url}/" opencart_conf_set HTTPS_SERVER "${https_url}/" + opencart_conf_set HTTP_SERVER "${https_url}/administration/" "$OPENCART_ADMIN_CONF_FILE" + opencart_conf_set HTTP_CATALOG "${https_url}/" "$OPENCART_ADMIN_CONF_FILE" opencart_conf_set HTTPS_SERVER "${https_url}/administration/" "$OPENCART_ADMIN_CONF_FILE" opencart_conf_set HTTPS_CATALOG "${https_url}/" "$OPENCART_ADMIN_CONF_FILE" else @@ -334,6 +336,8 @@ opencart_update_hostname() { opencart_conf_set HTTP_SERVER "${http_url}/administration/" "$OPENCART_ADMIN_CONF_FILE" opencart_conf_set HTTP_CATALOG "${http_url}/" "$OPENCART_ADMIN_CONF_FILE" + opencart_conf_set HTTPS_SERVER "${http_url}/administration/" "$OPENCART_ADMIN_CONF_FILE" + opencart_conf_set HTTPS_CATALOG "${http_url}/" "$OPENCART_ADMIN_CONF_FILE" fi }