borgbackupserver icon indicating copy to clipboard operation
borgbackupserver copied to clipboard

Some improvements for standalone installer

Open c0dr1ver opened this issue 7 months ago • 1 comments

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


c0dr1ver avatar Apr 17 '26 12:04 c0dr1ver

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.

marcpope avatar Apr 17 '26 13:04 marcpope