scripts/source/fetch.sh (sourced at runtime via files_source.sh): - lpFetchRelease [ver]: resolve channel manifest -> download tarball -> VERIFY sha256 (refuse on mismatch/absence) -> replace the install tree ( is code-only now; configs/logs live in the separate system tree, so no backup dance). Host/channel from LP_RELEASE_BASE_URL/CFG_RELEASE_BASE_URL + channel. - lpFetchSource: dispatch release|git|local. - lpVersionGt: numeric dotted semver compare (used by the updater + badge). init.sh initGIT is now release-aware: the bootstrap (install.sh) stages+verifies the code and sets LP_ALREADY_FETCHED=1 (skip re-fetch); a direct release run sources fetch.sh; a bare /root reinstall is directed to install.sh. install.sh exports LP_ALREADY_FETCHED + LP_RELEASE_BASE_URL on hand-off. validateUnattended already accepts release (git-url is gated on git mode). Config: CFG_INSTALL_MODE default -> release, + CFG_RELEASE_BASE_URL / CFG_RELEASE_CHANNEL (add-only reconcile preserves existing installs' git/local mode). Verified: lpVersionGt across cases; lpFetchRelease downloads+verifies+extracts a clean tree against a local server. The updater + reset/reinstall release paths are phase D. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
12 lines
1.3 KiB
Plaintext
Executable File
12 lines
1.3 KiB
Plaintext
Executable File
# ================================================================================
|
|
# Installation Setup - Local or Git Repository configuration and version control
|
|
# ================================================================================
|
|
CFG_INSTALL_MODE=release # Installation Mode - How LibrePortal is fetched + updated [release:Release tarball (recommended)|git:Git clone (dev)|local:Local folder (dev)]
|
|
CFG_RELEASE_BASE_URL=https://get.libreportal.org # Release Host - Base URL serving the release channels (override for self-hosting) **ADVANCED**
|
|
CFG_RELEASE_CHANNEL=stable # Release Channel - Which channel to install/update from [stable:Stable|edge:Edge]
|
|
CFG_GIT_URL=changeme # Git Repository URL - Git repository URL for LibrePortal configuration
|
|
CFG_GIT_USER=changeme # Git Username - Git username for repository authentication
|
|
CFG_GIT_KEY=changeme # Git Access Key - SSH key or API key for Git repository access
|
|
CFG_GIT_UPDATES=true # Auto Check Updates - Check for updates automatically
|
|
CFG_GIT_AUTO_UPDATES=true # Auto Apply Updates - Automatically apply updates when available
|