Compare commits
No commits in common. "89049864a6535a0297e3a31d549dff5bbf12cbdd" and "540b0518c5e5ee9678c8a1735da0c7eaa8a142b9" have entirely different histories.
89049864a6
...
540b0518c5
14
init.sh
14
init.sh
@ -1424,20 +1424,6 @@ clone_and_install() {
|
|||||||
echo "NOTICE: Local install detected — no Git remote to clone."
|
echo "NOTICE: Local install detected — no Git remote to clone."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
if [[ "$CFG_INSTALL_MODE" == "release" ]]; then
|
|
||||||
if [ -f "$install_scripts_dir/source/fetch.sh" ] && [ -f "$install_scripts_dir/docker/command/run_privileged.sh" ]; then
|
|
||||||
source "$install_scripts_dir/docker/command/run_privileged.sh"
|
|
||||||
source "$install_scripts_dir/source/fetch.sh"
|
|
||||||
if lpFetchRelease; then
|
|
||||||
echo "SUCCESS: Re-fetched the verified release. Run 'libreportal run' to continue."
|
|
||||||
else
|
|
||||||
echo "ERROR: release re-fetch failed."
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "NOTICE: Release install — reinstall via the bootstrap: curl -fsSL <host>/install.sh | sudo bash"
|
|
||||||
fi
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
update_config_values;
|
update_config_values;
|
||||||
setup_repo;
|
setup_repo;
|
||||||
clone_repo;
|
clone_repo;
|
||||||
|
|||||||
@ -4,18 +4,6 @@ runReinstall()
|
|||||||
{
|
{
|
||||||
isHeader "Reinstalling LibrePortal"
|
isHeader "Reinstalling LibrePortal"
|
||||||
|
|
||||||
# Release mode: re-fetch the verified tarball instead of re-cloning from git.
|
|
||||||
if [[ "$CFG_INSTALL_MODE" == "release" ]]; then
|
|
||||||
if declare -f lpFetchRelease >/dev/null 2>&1 && lpFetchRelease; then
|
|
||||||
runSystem cp -f "$script_dir/init.sh" /root/ 2>/dev/null || true
|
|
||||||
runInstallOp chown -R "$sudo_user_name:$sudo_user_name" "$script_dir"
|
|
||||||
isSuccessful "Re-fetched the verified release. Run 'libreportal run' to continue."
|
|
||||||
else
|
|
||||||
isError "Release re-fetch failed — install unchanged."
|
|
||||||
fi
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if this is a local installation
|
# Check if this is a local installation
|
||||||
if [[ "$CFG_INSTALL_MODE" == "local" ]]; then
|
if [[ "$CFG_INSTALL_MODE" == "local" ]]; then
|
||||||
echo "NOTICE: Local installation detected - cannot reinstall from Git."
|
echo "NOTICE: Local installation detected - cannot reinstall from Git."
|
||||||
|
|||||||
@ -2,18 +2,6 @@
|
|||||||
|
|
||||||
gitReset()
|
gitReset()
|
||||||
{
|
{
|
||||||
# Release mode: re-fetch the verified tarball instead of re-cloning.
|
|
||||||
if [[ "$CFG_INSTALL_MODE" == "release" ]]; then
|
|
||||||
if declare -f lpFetchRelease >/dev/null 2>&1 && lpFetchRelease; then
|
|
||||||
runSystem cp -f "$script_dir/init.sh" /root/ 2>/dev/null || true
|
|
||||||
runInstallOp chown -R "$sudo_user_name:$sudo_user_name" "$script_dir"
|
|
||||||
isSuccessful "Re-fetched the verified release."
|
|
||||||
else
|
|
||||||
isError "Release re-fetch failed — install unchanged."
|
|
||||||
fi
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check if this is a local installation
|
# Check if this is a local installation
|
||||||
if [[ "$CFG_INSTALL_MODE" == "local" ]]; then
|
if [[ "$CFG_INSTALL_MODE" == "local" ]]; then
|
||||||
isNotice "Local installation detected - Git reset is not applicable."
|
isNotice "Local installation detected - Git reset is not applicable."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user