mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-28 16:58:31 +01:00
Connect installer admission to the existing updater fixtures
The complete installer suite exposed the extracted-main fixture missing the new admission dependency and the native fixture still relocating one local destination definition. Keep server operations inert in the updater-completion unit, and relocate both actual admission/writer destinations in the connected signed recovery control. Runtime source, assertions and native safety checks remain intact. Contract-Neutral: Maintains existing fixture boundaries for the reviewed caller admission without changing production behavior, validation requirements or native qualification policy. Change-source: pulse-maintainer
This commit is contained in:
@@ -234,7 +234,10 @@ ENABLE_AUTO_UPDATES=true
|
||||
print_info() { printf 'INFO %s\n' "$*"; }
|
||||
print_warn() { printf 'WARN %s\n' "$*"; }
|
||||
print_success() { printf 'SUCCESS %s\n' "$*"; }
|
||||
for fn in print_header check_root detect_os check_docker_environment offer_existing_auto_updates run_upgrade_readiness_preflight backup_existing create_user download_pulse setup_directories setup_update_command ensure_systemd_service_installed create_marker_file; do
|
||||
# Server-unit admission/replacement has its own connected main/archive/source
|
||||
# controls. Keep it inert with the other server operations in this extracted-
|
||||
# main fixture, whose subject is optional updater setup and failure completion.
|
||||
for fn in print_header check_root detect_os check_docker_environment offer_existing_auto_updates run_upgrade_readiness_preflight preflight_systemd_service_installation backup_existing create_user download_pulse setup_directories setup_update_command ensure_systemd_service_installed create_marker_file; do
|
||||
eval "$fn() { :; }"
|
||||
done
|
||||
check_existing_installation() { CURRENT_VERSION=v6.5.0; return 0; }
|
||||
|
||||
@@ -679,11 +679,11 @@ else: sys.exit(97)
|
||||
original_write = Path.write_text
|
||||
def relocate(path, data, *args, **kwargs):
|
||||
if path.name == "installer-definitions":
|
||||
# Relocate only the production destination. Keep its real
|
||||
# private staging, checked writes and atomic publication in
|
||||
# this connected signature/archive/recovery control too.
|
||||
# Relocate both the shared admission and writer destination.
|
||||
# Keep real name selection, refusal, private staging, checked
|
||||
# writes and atomic publication in this connected control.
|
||||
before = 'local service_path="/etc/systemd/system/$SERVICE_NAME.service"'
|
||||
self.assertEqual(data.count(before), 1)
|
||||
self.assertEqual(data.count(before), 2)
|
||||
data = data.replace(before, 'local service_path="$PULSE_NATIVE_ROOT/pulse-source-updater.service"')
|
||||
return original_write(path, data, *args, **kwargs)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user