I modified the settings so that PG_DATA points to /var/lib/pgsql/9.3/data and I 
still get errors:

[root@rdcengsw01 config]# spacewalk-setup upgrade
* Setting up SELinux..
Choose your database backend (oracle, postgresql)? postgresql
** Database: Setting up database connection for PostgreSQL backend.
** Database: Installing the database:
** Database: This is a long process that is logged in:
** Database:   /var/log/rhn/install_db.log
*** Progress: ##
Could not install database.
[root@rdcengsw01 config]# less /var/log/rhn/install_db.log
/usr/bin/spacewalk-setup-postgresql: line 87: isSUSE: command not found
/usr/bin/spacewalk-setup-postgresql: line 100: isSUSE: command not found
error reading information on service postgresql: No such file or directory

How shall I go about fixing / debugging this ?

From: [email protected] 
[mailto:[email protected]] On Behalf Of Boyd, Robert
Sent: Wednesday, February 01, 2017 6:22 PM
To: [email protected]
Subject: [Spacewalk-list] spacewalk-setup upgrade PostgreSQL setup coding error!


This sender failed our fraud detection checks and may not be who they appear to 
be. Learn about spoofing<http://aka.ms/LearnAboutSpoofing>

Feedback<http://aka.ms/SafetyTipsFeedback>

This code will only work for pre 9.x PostgreSQL:
>From /usr/bin/spacewalk-setup-postgresql
...

PG_DATA=/var/lib/pgsql/data
PG_HBA="$PG_DATA/pg_hba.conf"
PG_IDENT="$PG_DATA/pg_ident.conf"
POSTGRESQL="$PG_DATA/postgresql.conf"
POSTGRESQL_SW_APPEND=/usr/share/spacewalk/setup/postgresql.conf
PORT=5432
PG_PIDFILE="/var/run/postmaster.$PORT.pid"
if isSUSE ; then
    PG_PIDFILE="$PG_DATA/postmaster.pid"

Can someone please fix this program to CHECK for the version of pgsql on the 
server and select the correct directory accordingly???
I'm going to just hard code it for now to get through my upgrade.


Robert Boyd
Sr. Systems Engineer
PeopleFluent
p. 919-645-2972 | c. 919-306-4681
e. [email protected]<mailto:[email protected]>

[http://mktg.peoplefluent.com/rs/peopleclick/images/140410_PF4colorLOGOx150.png]<http://www.peoplefluent.com/>
Click here<http://www.peoplefluent.com/> to experience the power of the new 
PeopleFluent Mirror Suite (tm)
Visit: www.peoplefluent.com<http://www.peoplefluent.com/> | Read: PeopleFluent 
Blog<http://peoplefluent.com/resources/peoplefluent-blog> | Follow: 
@PeopleFluent<http://twitter.com/peoplefluent>

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to