Bug 47838

Summary: Некорректно обрабатывается переменная $PGMETHOD в /etc/init.d/postgresql
Product: Sisyphus Reporter: Artem Varaksa <varaksaaa>
Component: postgresql16Assignee: Alexei Takaseev <taf>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: alimektor, taf
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Artem Varaksa 2023-10-04 18:31:11 MSK
В следующем участке кода:

> if [ -z "PGMETHOD" ]
> then
>    PGMETHOD="scram-sha-256"
> fi

В условии должно быть $PGMETHOD, иначе при пустом параметре ожидаемой замены на scram-sha-256 не произойдёт.

Код находится в altlinux/postgresql.init.in в пакетах:

postgresql16 (sisyphus)
postgresql15 (sisyphus)
postgresql14 (sisyphus)
postgresql13 (sisyphus)
postgresql12 (sisyphus)
postgresql11 (sisyphus)

Для postgresql10 (есть только в p10) не актуально, т. к. там обрабатывается только $PGDATA.
Comment 1 Alexei Takaseev 2023-10-09 10:25:07 MSK
*** Bug 47883 has been marked as a duplicate of this bug. ***
Comment 2 Alexei Takaseev 2023-10-10 08:15:52 MSK
* Mon Oct  9 20:00:00 2023 Alexei Takaseev <taf@altlinux.org> 16.0-alt2
- Fix typo (Fixes ALT 47838)