Update with new remote repo url for freeleaps

This commit is contained in:
jetli 2025-03-27 20:35:51 -07:00
parent e0fd48fbbe
commit 816ecbed31

View File

@ -153,7 +153,7 @@ devbox_init_guidance() {
ENCODING_FREELEAPS_USERNAME=$(url_encode "$freeleaps_username")
ENCODEING_FREELEAPS_PASSWORD=$(url_encode "$freeleaps_password")
use_custom_repository="https://$ENCODING_FREELEAPS_USERNAME:$ENCODEING_FREELEAPS_PASSWORD@freeleaps.com:3443/products/$product_id.git"
use_custom_repository="https://$ENCODING_FREELEAPS_USERNAME:$ENCODEING_FREELEAPS_PASSWORD@gitea.freeleaps.mathmast.com/products/$product_id.git"
# Test the repository connection
if ! git ls-remote "$use_custom_repository"; then
@ -1851,16 +1851,16 @@ devbox_init_command() {
ENCODEING_FREELEAPS_PASSWORD=$(url_encode "$FREELEAPS_PASSWORD")
# Test if the user can access the freeleaps.com repository
log_info "Testing access to freeleaps.com repository..."
if ! git ls-remote "https://$ENCODEING_FREELEAPS_USERNAME:$ENCODEING_FREELEAPS_PASSWORD@freeleaps.com:3443/products/freeleaps.git" &>/dev/null; then
if ! git ls-remote "https://$ENCODEING_FREELEAPS_USERNAME:$ENCODEING_FREELEAPS_PASSWORD@gitea.freeleaps.mathmast.com/products/freeleaps.git" &>/dev/null; then
exit_with_message " Failed to access freeleaps.com repository. Please check your username and password." 1
fi
FREELEAPS_DIR="$WORKING_HOME/freeleaps"
FRONTEND_GIT_URL="https://$ENCODEING_FREELEAPS_USERNAME:$ENCODEING_FREELEAPS_PASSWORD@freeleaps.com:3443/products/freeleaps.git"
FRONTEND_GIT_URL="https://$ENCODEING_FREELEAPS_USERNAME:$ENCODEING_FREELEAPS_PASSWORD@gitea.freeleaps.mathmast.com/products/freeleaps.git"
# Check if freeleaps2-frontend exists, if not git clone it
if [ ! -d "$FREELEAPS_DIR" ]; then
pushd "$WORKING_HOME" > /dev/null
log_info "Git cloning freeleaps.com:3443/products/freeleaps.git to $FREELEAPS_DIR"
log_info "Git cloning gitea.freeleaps.mathmast.com/products/freeleaps.git to $FREELEAPS_DIR"
git clone --depth 5 $FRONTEND_GIT_URL
else
@ -1879,7 +1879,7 @@ devbox_init_command() {
git clone --depth 5 "$FRONTEND_GIT_URL"
else
log_info "Git pulling freeleaps.com:3443/products/freeleaps.git"
log_info "Git pulling gitea.freeleaps.mathmast.com/products/freeleaps.git"
git pull
fi