fix: each msg_info must have msg_ok

This commit is contained in:
Raghav Vashisht 2025-11-23 18:45:07 +05:30
parent 92c827ed9a
commit 4509406b0c

View File

@ -80,16 +80,12 @@ cat <<EOF >>~/.bashrc
export ENTE_CLI_SECRETS_PATH=/opt/ente/cli/dist/secrets.txt export ENTE_CLI_SECRETS_PATH=/opt/ente/cli/dist/secrets.txt
export PATH="/opt/ente/cli/dist:$PATH" export PATH="/opt/ente/cli/dist:$PATH"
EOF EOF
msg_ok "Exported Ente CLI paths"
# remove .ente txt file
$STD rm ~/.ente $STD rm ~/.ente
$STD mkdir -p ~/.ente $STD mkdir -p ~/.ente
cat <<EOF >~/.ente/config.yaml cat <<EOF >~/.ente/config.yaml
endpoint: endpoint:
api: http://localhost:8080 api: http://localhost:8080
EOF EOF
msg_ok "Created Ente CLI config.yaml"
msg_ok "Configured Ente CLI" msg_ok "Configured Ente CLI"
msg_info "Building Museum (server)" msg_info "Building Museum (server)"
@ -165,10 +161,12 @@ if [[ -z "$backend_url" ]]; then
# Default to local IP if user doesn't provide one # Default to local IP if user doesn't provide one
LOCAL_IP=$(hostname -I | awk '{print $1}') LOCAL_IP=$(hostname -I | awk '{print $1}')
ENTE_BACKEND_URL="http://$LOCAL_IP:8080" ENTE_BACKEND_URL="http://$LOCAL_IP:8080"
msg_info "No URL provided, using local IP: $ENTE_BACKEND_URL\n" msg_info "No URL provided"
msg_ok "using local IP: $ENTE_BACKEND_URL\n"
else else
ENTE_BACKEND_URL="$backend_url" ENTE_BACKEND_URL="$backend_url"
msg_info "Using provided URL: $ENTE_BACKEND_URL\n" msg_info "URL provided"
msg_ok "Using provided URL: $ENTE_BACKEND_URL\n"
fi fi
# Prompt for albums URL # Prompt for albums URL
@ -176,10 +174,12 @@ read -r -p "Enter the public URL for Ente albums (e.g., https://albums.ente.your
if [[ -z "$albums_url" ]]; then if [[ -z "$albums_url" ]]; then
LOCAL_IP=$(hostname -I | awk '{print $1}') LOCAL_IP=$(hostname -I | awk '{print $1}')
ENTE_ALBUMS_URL="http://$LOCAL_IP:3002" ENTE_ALBUMS_URL="http://$LOCAL_IP:3002"
msg_info "No URL provided, using local IP: $ENTE_ALBUMS_URL\n" msg_info "No URL provided"
msg_ok "using local IP: $ENTE_ALBUMS_URL\n"
else else
ENTE_ALBUMS_URL="$albums_url" ENTE_ALBUMS_URL="$albums_url"
msg_info "Using provided URL: $ENTE_ALBUMS_URL\n" msg_info "URL provided"
msg_ok "Using provided URL: $ENTE_ALBUMS_URL\n"
fi fi
export NEXT_PUBLIC_ENTE_ENDPOINT=$ENTE_BACKEND_URL export NEXT_PUBLIC_ENTE_ENDPOINT=$ENTE_BACKEND_URL