Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
maintenance
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0c884c1c
authored
Mar 13, 2022
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed di Debian 7
1 parent
1a7349e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
maintenance/__init__.py
maintenance/__init__.py
View file @
0c884c1
...
@@ -56,7 +56,7 @@ def run_event(event):
...
@@ -56,7 +56,7 @@ def run_event(event):
def
is_systemd
():
def
is_systemd
():
script
=
'/
lib/systemd/system/postgresql.service
'
script
=
'/
bin/systemctl
'
return
os
.
path
.
exists
(
script
)
return
os
.
path
.
exists
(
script
)
...
@@ -77,7 +77,7 @@ def old_pg_service(todo):
...
@@ -77,7 +77,7 @@ def old_pg_service(todo):
pg_conf_dir
=
conf
.
get
(
'main'
,
'pg_conf_dir'
)
pg_conf_dir
=
conf
.
get
(
'main'
,
'pg_conf_dir'
)
for
version
in
os
.
listdir
(
pg_conf_dir
):
for
version
in
os
.
listdir
(
pg_conf_dir
):
cmd
=
f
'/etc/init.d/postgresql {todo} {version}'
cmd
=
f
'/etc/init.d/postgresql {todo} {version}'
run
_cmd
(
)
run
(
cmd
)
def
pg_service
(
todo
):
def
pg_service
(
todo
):
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment