Simplify TREK installation script

Removed initialization wait and health check for TREK.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-25 21:49:41 +02:00
committed by GitHub
parent 06824fc534
commit 81d49a3d36

View File

@@ -18,7 +18,6 @@ $STD apt install -y build-essential
msg_ok "Installed Dependencies"
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "trek" "mauriceboe/TREK" "tarball"
msg_info "Building Client"
@@ -75,24 +74,6 @@ EOF
systemctl enable -q --now trek
msg_ok "Created Service"
msg_info "Waiting for TREK to initialize"
for i in $(seq 1 30); do
if curl -sf http://localhost:3000/api/health >/dev/null 2>&1; then
break
fi
sleep 1
done
if ! curl -sf http://localhost:3000/api/health >/dev/null 2>&1; then
msg_error "TREK failed to initialize"
exit
fi
sed -i '/^ADMIN_EMAIL=/d;/^ADMIN_PASSWORD=/d' /opt/trek/server/.env
msg_ok "TREK initialized"
echo -e "${INFO}${YW} Default Admin Account:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}Email: ${ADMIN_EMAIL}${CL}"
echo -e "${TAB}${GATEWAY}${BGN}Password: ${ADMIN_PASSWORD}${CL}"
motd_ssh
customize
cleanup_lxc