@@ -36,10 +36,6 @@ install -m 755 "$BUN_TMP/bun-linux-${BUN_VARIANT}/bun" /usr/local/bun/bin/bun
3636rm -rf " $BUN_TMP "
3737ln -sf /usr/local/bun/bin/bun /usr/local/bin/bun
3838ln -sf /usr/local/bun/bin/bun /usr/local/bin/bunx
39- [ -x /usr/local/bun/bin/bun ] || {
40- msg_error " Bun installation failed"
41- exit 1
42- }
4339msg_ok " Installed Bun"
4440
4541fetch_and_deploy_gh_release " rackula" " RackulaLives/Rackula" " prebuild" " latest" " /opt/rackula" " rackula-lxc-*.tar.gz"
@@ -82,10 +78,7 @@ msg_info "Configuring nginx"
8278cp /opt/rackula/config/nginx.conf /etc/nginx/sites-available/rackula
8379rm -f /etc/nginx/sites-enabled/default
8480ln -sf /etc/nginx/sites-available/rackula /etc/nginx/sites-enabled/rackula
85- if ! $STD nginx -t; then
86- msg_error " nginx configuration test failed (run 'nginx -t' for details)"
87- exit 1
88- fi
81+ $STD nginx -t
8982msg_ok " Configured nginx"
9083
9184msg_info " Creating Services"
@@ -106,21 +99,6 @@ systemctl enable -q nginx rackula-api
10699systemctl restart nginx rackula-api
107100msg_ok " Created Services"
108101
109- msg_info " Verifying Services"
110- for i in $( seq 0 9) ; do
111- if curl -sf --connect-timeout 2 --max-time 5 http://127.0.0.1/api/health > /dev/null 2>&1 ; then
112- msg_ok " Service running successfully"
113- break
114- fi
115- sleep 1
116- if [ " $i " -eq 9 ]; then
117- msg_info " Last rackula-api logs"
118- journalctl -u rackula-api --no-pager -n 50 || true
119- msg_error " Service failed to respond on http://127.0.0.1/api/health within 10 seconds"
120- exit 1
121- fi
122- done
123-
124102motd_ssh
125103customize
126104cleanup_lxc
0 commit comments