Compare commits

..

No commits in common. "5243039ec3e7fbe21fe9e6eafa0f4335494650b6" and "9ef335509cf28de70e9f9778c88d1bc07cfba01c" have entirely different histories.

2 changed files with 2 additions and 19 deletions

View File

@ -1574,13 +1574,7 @@ completeInitMessage()
isNotice "Starting LibrePortal installation as $sudo_user_name user..."
# Switch to libreportal user and run the install command
# LIBREPORTAL_INITIAL_INSTALL=1 tells the runtime entry (check_files.sh) to
# skip the routine update check on this very first run — we just installed
# the latest code from this very tree, and the update path would otherwise
# try to git-pull (no .git in the deployed install dir) or lpFetchRelease
# (no release manifest reachable yet), failing in ways that leave the
# WebUI / task-processor uninstalled.
if sudo -u "$sudo_user_name" LIBREPORTAL_SKIP_LOGO=1 LIBREPORTAL_INITIAL_INSTALL=1 bash -c "libreportal run install"; then
if sudo -u "$sudo_user_name" LIBREPORTAL_SKIP_LOGO=1 bash -c "libreportal run install"; then
# Install done — tighten the manager's broad install-phase sudo down to
# the scoped runtime allowlist.
initScopedSudoers

View File

@ -20,18 +20,7 @@ sourceCheckFiles()
if [[ $flag == "run" ]]; then
isSuccessful "All files found and loaded for startup."
detectOS;
# Fresh install (set by init.sh's completeInitMessage handoff): skip
# the routine update check and go straight to startLoad. We just
# installed the latest code — the update path's git-pull / release
# re-fetch would fail on a tree without .git or a reachable manifest
# and leave the WebUI / task-processor uninstalled. All of
# checkUpdates' own success branches converge on startLoad anyway;
# we just bypass the recovery gauntlet that doesn't apply here.
if [[ "$LIBREPORTAL_INITIAL_INSTALL" == "1" ]]; then
startLoad
else
checkUpdates
fi
checkUpdates;
# This is where the CLI command starts
elif [[ $flag == "cli" ]]; then
detectOS;