Skip to content

Prepare for changes of su in util-linux 2.42#916

Open
mayrstefan wants to merge 1 commit into
Checkmk:masterfrom
mayrstefan:fix-postgresql-su
Open

Prepare for changes of su in util-linux 2.42#916
mayrstefan wants to merge 1 commit into
Checkmk:masterfrom
mayrstefan:fix-postgresql-su

Conversation

@mayrstefan
Copy link
Copy Markdown
Contributor

General information

With util-linux 2.42 su gets more strict about it's command line. From the release notes:

pass arguments after to shell (by cgoesche)

It is also recommended to use "--login" instead of "-".

Bug reports

mk_postgres.py does not work with util-linux 2.42 - see https://forum.checkmk.com/t/postgresql-services-disappear-after-updating-util-linux-to-2-42/58816

Proposed changes

  • change su argument order to match man page
  • use recommended long form of --login

With util-linux 2.42 su gets more strict about it's command line.
From the release notes:
"pass arguments after <user> to shell (by cgoesche)"

It is also recommended to use "--login" instead of "-".

Could fix https://forum.checkmk.com/t/postgresql-services-disappear-after-updating-util-linux-to-2-42/58816
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant