Some improvements for standalone installer
Description
Hi there, I'm observing some issues with installation script. It will be cool if you add crontab check before installation cos I have a error on my ubuntu minimal
./bbs-install: line 486: crontab: command not found
also I was puzzled a bit on the 1st step with "Gather information"
The question:
Auto-generate a 'bbs' database user with random password? [Y/n]
was placed incorrect ;)
[1/10] Gather information
Server hostname (e.g. backups.example.com): bbs1.***.net
Auto-generate a 'bbs' database user with random password? [Y/n] ✔ Hostname: bbs1.***.net
✔ SSL disabled — skipping DNS check
MySQL setup: BBS needs a database.
so I'm waiting for a few minutes without any progress before I found this question : )
Steps to Reproduce
Ubuntu minimal 24.04 Friendly secure shell
Installation Type
Bare metal (Ubuntu)
BBS Version
2.5.35
Agent Version (if applicable)
No response
Agent OS (if applicable)
None
Relevant Logs
Fixed in aa97dd2 — will be in the next release.
1. crontab: command not found — cron added to the installer's apt package list. Ubuntu-minimal doesn't ship with it by default.
2. Prompt ordering — the installer wraps stdout through tee for logging, but ask() was writing prompts directly to /dev/tty, bypassing the tee buffer. That made prompts appear before the preceding ok/info lines had flushed. Now prompts go through the same stdout stream, tee runs line-buffered (stdbuf -oL), and there's a small flush pause before read blocks.
Thanks for the report — both easy to reproduce once you called them out.