Commit 0c884c1c by Owo Sugiana

Bug fixed di Debian 7

1 parent 1a7349e5
......@@ -56,7 +56,7 @@ def run_event(event):
def is_systemd():
script = '/lib/systemd/system/postgresql.service'
script = '/bin/systemctl'
return os.path.exists(script)
......@@ -77,7 +77,7 @@ def old_pg_service(todo):
pg_conf_dir = conf.get('main', 'pg_conf_dir')
for version in os.listdir(pg_conf_dir):
cmd = f'/etc/init.d/postgresql {todo} {version}'
run_cmd()
run(cmd)
def pg_service(todo):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!