Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to postgres 15 #37

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/wazo-service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright 2018-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2018-2025 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

PATH=/bin:/usr/bin:/sbin:/usr/sbin
Expand Down Expand Up @@ -152,7 +152,7 @@ start_services() {
local services=$1
for service in $services; do
if [ "$service" = postgresql ]; then
service=postgresql@13-main
service=postgresql@15-main
fi
exists=$(exists $service)
enabled=$(is_enabled $service)
Expand Down Expand Up @@ -191,7 +191,7 @@ stop_services() {
local services=$1
for service in $services; do
if [ "$service" = postgresql ]; then
service=postgresql@13-main
service=postgresql@15-main
fi
systemctl stop $service
done
Expand Down
4 changes: 2 additions & 2 deletions wazo_service/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# Copyright 2017-2023 The Wazo Authors (see the AUTHORS file)
# Copyright 2017-2025 The Wazo Authors (see the AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations

Expand Down Expand Up @@ -52,7 +52,7 @@ def translate_status(status: str) -> str:

class PostgresService(Service):
def __init__(self) -> None:
super().__init__('postgresql', unit_name='postgresql@13-main')
super().__init__('postgresql', unit_name='postgresql@15-main')


def status(service_group: Iterable[Service]) -> int:
Expand Down