GRI-1936: install.sh installs PostgreSQL on request, and gains uninstall and reinstall #141
No reviewers
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!141
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/GRI-1936-install-postgres"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GRI-1936. Two changes to
install.sh, both asked for by the product owner.1. PostgreSQL when the host has none (
server --native)Install PostgreSQL here and set it up for the server? [Y/n].signagewith a generated password, writes/etc/grimoire-signage/database.env.postgres://).--install-postgres/--no-install-postgres, orSCRYGLASS_INSTALL_POSTGRES=ask|yes|no, skip the question. No terminal: installs, as before.SCRYGLASS_DB_URLis set, or on an upgrade.2.
uninstallandreinstall(serverandclient)uninstallremoves programs, service, source and build toolchains. Keeps config, database and media.--purgealso deletes config, the local database and its user, and media (client: config and per-user cache). Asks first; with no terminal it needs--yes. A database on another host is never dropped. PostgreSQL itself stays installed.reinstall= uninstall + fresh download and build, same mode (Docker/native) as before, data kept unless--purge..envandconfig.tomlare saved to/etc/grimoire-signage/dockerand restored by the next install. Volumes go only with--purge./or a top-level directory.Tested on clean
debian:bookwormcontainers: 9 PostgreSQL decision cases (real pty for interactive ones) plus a real install where the generated URL connects; 9 uninstall cases on native server/client with a real PostgreSQL. Docker uninstall/restore with a stubbeddocker. A fullreinstallbuild was not run end to end (about 30 min); it is the tested uninstall followed by the existing install path.scripts/local-gates.sh: every gate passed.