Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 893257 Details for
Bug 1078345
Don't rely on PATH for su and runuser in postgresql-setup
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Set PATH if it is unset and don't expect /sbin/runuser exists.
postgresql-setup.diff (text/plain), 587 bytes, created by
Pavel Raiskup
on 2014-05-07 12:41:11 UTC
(
hide
)
Description:
Set PATH if it is unset and don't expect /sbin/runuser exists.
Filename:
MIME Type:
Creator:
Pavel Raiskup
Created:
2014-05-07 12:41:11 UTC
Size:
587 bytes
patch
obsolete
>diff --git a/postgresql-setup b/postgresql-setup >index acf07f7..7ce7b9f 100755 >--- a/postgresql-setup >+++ b/postgresql-setup >@@ -2,6 +2,8 @@ > # > # postgresql-setup - Initialization and upgrade operations for PostgreSQL > >+test -z "$PATH" && export PATH="/sbin:/usr/sbin:/bin:/usr/bin" >+ > test x"$PGSETUP_DEBUG" != x && set -x > > # PGVERSION is the full package version, e.g., 9.0.2 >@@ -100,7 +102,7 @@ export PGDATA > export PGPORT > > # For SELinux we need to use 'runuser' not 'su' >-if [ -x /sbin/runuser ]; then >+if command -v runuser &>/dev/null; then > SU=runuser > else > SU=su
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1078345
:
876405
| 893257