Changeset 795


Ignore:
Timestamp:
07/02/09 21:09:19 (4 years ago)
Author:
bruno
Message:
  • Fix ntp info for VE locally
  • Fix postgresql issue at startup by defering conf file modification. THis allows a non already installed postgresql to setup the conf correctly and then modification and restart is possible
Location:
projects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec

    r793 r795  
    8989%post 
    9090 
     91# Check postgresql is running 
     92LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop 
     93if [ $? -eq 0 ]; then 
     94    /etc/init.d/postgresql start 
     95fi 
     96chkconfig --add postgresql 
     97 
    9198# We suppose that we use the local postgresql installed on the same machine. 
    9299cat >> /var/lib/pgsql/data/pg_hba.conf << EOF 
     
    96103# IPv4 local connections: 
    97104host    all         all         127.0.0.1/32          md5 
    98 # IPv6 local connections: 
    99 host    all         all         ::1/128               ident sameuser 
    100105 
    101106EOF 
     107# Comment previous setup 
    102108perl -pi -e 's|(host\s+all\s+all\s+127.0.0.1/32\s+ident\s+sameuser)|#$1|' /var/lib/pgsql/data/pg_hba.conf 
     109perl -pi -e 's|(local\s+all\s+all\s+127.0.0.1/32\s+ident\s+sameuser)|#$1|' /var/lib/pgsql/data/pg_hba.conf 
    103110 
    104 # Check postgresql is running 
    105 LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop 
    106 if [ $? -eq 0 ]; then 
    107     /etc/init.d/postgresql start 
    108 else 
    109     # Reload doesn't seem to work here 
    110     /etc/init.d/postgresql restart 
    111 fi 
    112 chkconfig --add postgresql 
     111# Now restart again postgresql 
     112# We have do it here in order to let postgresql configure itself correctly  
     113# in case it wasn't already installed 
     114/etc/init.d/postgresql restart 
    113115 
    114116# To avoid fossology setup to fail, leave it time to start 
     
    121123# Adds user httpd to fossy group 
    122124#useradd -G fossy httpd 
    123 perl -pi -e 's/^fossy:x:([0-9]+):/fossy:x:$1:httpd/' /etc/group 
     125perl -pi -e 's/^fossy:x:([0-9]+):(.+)/fossy:x:$1:httpd,$2/' /etc/group 
     126perl -pi -e 's/^fossy:x:([0-9]+):$/fossy:x:$1:httpd/' /etc/group 
    124127 
    125128# httpd is also assumed to run locally 
  • projects/rinse/pbconf/devel/conf/.pbrc

    r771 r795  
    1717 
    1818# Hash for VE stuff on vmtype 
    19 ventp default = pool.ntp.org 
    20 ventpcmd default = ntpdate 
     19ventp default = grentp1.europe.hp.net 
     20ventpcmd default = /usr/sbin/ntpdate 
    2121 
    2222# We suppose we can commmunicate with the VE through schroot 
Note: See TracChangeset for help on using the changeset viewer.