Commit Graph
13 Commits
Author SHA1 Message Date
Damien 51f2474db6 openbao,gitea-runner: source lib/common.sh, fix hardcoded Alpine template
Both install scripts now source lib/common.sh instead of duplicating
detect_latest_alpine_template(), find_existing_lxc(), and the tty1
autologin block. Since these scripts are distributed via curl one-liner
and piped into `pct exec` inside the LXC, there is no local checkout to
source from in those contexts — lib/common.sh is sourced from disk when
a local checkout is available (BASH_SOURCE resolves to a real path),
otherwise fetched over HTTP next to SCRIPT_URL. Both scripts already
require outbound network to curl themselves and to download their
respective binaries, so this adds no new failure mode.

openbao/install.sh is a behavioral no-op: same log output, same control
flow. One inline apk update/upgrade is intentionally left as-is in
update_lxc() — refresh_os_packages() is a bash function in this
process and can't run over `pct exec ... sh -c` without shipping the
function definition into the container.

gitea-runner/install.sh fixes the actual bug: TEMPLATE was hardcoded to
a specific dated Alpine release, so create_lxc() would keep trying to
provision a stale/absent template. TEMPLATE now defaults to empty and
create_lxc() calls detect_latest_alpine_template() when unset, mirroring
openbao. Also renamed HOSTNAME -> HOSTNAME_LXC and added LXC_TAG to
match openbao's naming, since a follow-up (issue #15) will wire up
find_existing_lxc()-based update detection here.

Closes #12, Closes #14
2026-07-30 11:23:03 +02:00
Damien a03af83126 Force tty1 respawn after autologin change 2026-05-26 17:52:54 +02:00
Damien bc1ad49210 Install script adds agetty for console autologin 2026-05-26 17:48:34 +02:00
Damien a6a3b421c5 Add cleanup for temporary directory
Previously the temporary directory was removed via the RETURN trap
but this could be bypassed if the script exited early. Now we
explicitly clean up the directory in all exit paths.
2026-05-26 17:42:24 +02:00
Damien c7f44aa293 Update install script for OpenBao release asset changes
OpenBao now uses raw architecture names (x86_64, aarch64) instead of
Go-style (amd64, arm64) and publishes .tar.gz archives instead of .zip
files. This commit updates the install script to match the new naming
convention and archive format.
2026-05-26 17:38:38 +02:00
Damien 34e0ce087d Update install script to use configurable GitHub releases URL 2026-05-26 17:25:25 +02:00
Damien 10f9a16782 Allow overriding SCRIPT_URL and VERSION_FILE 2026-05-26 17:20:47 +02:00
Damien c52a5b7fea Redirect logging functions to stderr 2026-05-26 17:04:35 +02:00
Damien 274e728aeb Update OpenBao README and add MOTD configuration
```
Update environment variable table formatting for readability

Fix data directory path formatting in README

Add MOTD with OpenBao status and access information
```
2026-05-26 17:02:37 +02:00
Damien 03d7b13f89 Update install script URL to main branch 2026-05-26 15:36:14 +02:00
Damien e8920b246b Enable console auto-login on Proxmox LXCs
Enable root auto-login on tty1 for faster shell access in Proxmox LXCs
by
configuring agetty with autologin and adding the necessary inittab entry
2026-05-26 15:28:07 +02:00
Damien 530e7dce2a Add Tailscale reverse proxy support to OpenBao LXC 2026-05-26 15:25:39 +02:00
Damien 7899d8fd93 Add OpenBao LXC installation and update scripts 2026-05-26 15:16:38 +02:00