From 2052d0d530f6545902363e491fee2d18882cf24d Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Thu, 28 Aug 2025 11:00:11 +0300 Subject: [PATCH] [#4073] Make Hammer work on Debian 13 --- hammer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hammer.py b/hammer.py index 5394616ea0..32ecb56e48 100755 --- a/hammer.py +++ b/hammer.py @@ -102,6 +102,7 @@ SYSTEMS = { '10': False, '11': True, '12': True, + '13': True, }, 'freebsd': { '11.2': False, @@ -1536,7 +1537,7 @@ def _enable_postgresql(system): else: # Disable all PostgreSQL services first to avoid conflicts. # raise_error=False for when there are no matches - _, output = execute("systemctl list-unit-files | grep postgres | grep -Fv '@.service' | cut -d ' ' -f 1", + _, output = execute("sudo systemctl list-unit-files | grep postgres | grep -Fv '@.service' | cut -d ' ' -f 1", capture=True, raise_error=False) for service in output.split(): execute(f'sudo systemctl disable {service}') @@ -1554,7 +1555,7 @@ def _restart_postgresql(system): else: # Stop all PostgreSQL services first to avoid conflicts. # raise_error=False for when there are no matches - _, output = execute("systemctl list-unit-files | grep postgres | grep -Fv '@.service' | cut -d ' ' -f 1", + _, output = execute("sudo systemctl list-unit-files | grep postgres | grep -Fv '@.service' | cut -d ' ' -f 1", capture=True, raise_error=False) for service in output.split(): execute(f'sudo systemctl stop {service}') -- 2.47.3