Skip to content

Commit

Permalink
fix opencart admin urls on OPENCART_ENABLE_HTTPS=true
Browse files Browse the repository at this point in the history
  • Loading branch information
kirilovvv committed Apr 9, 2024
1 parent 83cd526 commit b1a2309
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit b1a2309

Please sign in to comment.