Changeset 764


Ignore:
Timestamp:
Apr 25, 2009, 1:16:01 PM (11 years ago)
Author:
Bruno Cornec
Message:

Simplify postgresql startup for fossology rpm

Location:
projects
Files:
4 edited

Legend:

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

    r747 r764  
    173173fi
    174174
    175 # Check postgresql is running
    176 LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop
    177 if [ $? -eq 0 ]; then
    178     /etc/init.d/postgresql start
    179 fi
    180 chkconfig --add postgresql
    181 
    182175cat >> /var/lib/pgsql/data/pg_hba.conf << EOF
    183176# Added for FOSSology connection
     
    193186perl -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
    194187
    195 # reload doesn't seem to work here :-(
    196 /etc/init.d/postgresql restart
     188# Check postgresql is running
     189LANGUAGE=C /etc/init.d/postgresql status 2>&1 | grep -q stop
     190if [ $? -eq 0 ]; then
     191    /etc/init.d/postgresql start
     192else
     193    # Reload doesn't seem to work here
     194    /etc/init.d/postgresql restart
     195fi
     196chkconfig --add postgresql
     197
    197198# To avaoid fossology setup to fail, leave it time to start
    198199sleep 2
  • projects/qemu/.pbrc

    r755 r764  
    22# Valid values for vmtype are
    33# qemu, kvm, (xen, ... TBD)
    4 vmtype default = qemu
     4vmtype default = kvm
    55
    66# Hash for VM stuff on vmtype
  • projects/rinse/pbconf/devel/conf/.pbrc

    r720 r764  
    1212veb4pi centos = /home/rinse/bin/before-post-install.sh
    1313# Additional packages to install
    14 vepkglist centos = perl,sudo,wget,tar,make,gzip,rpm-build,diffutils
     14vepkglist centos = perl,sudo,wget,tar,make,gzip,rpm-build,diffutils,ntpdate
    1515
    1616verebuild default = false
  • projects/rinse/pbconf/devel/conf/before-post-install.sh

    r679 r764  
    44
    55sed -i -e "s/^mirrorlist=/#mirrorlist=/;s|#baseurl=http://mirror.centos.org|baseurl=$basemir|;s|^gpgkey=http://mirror.centos.org|gpgkey=$basemir|" $1/etc/yum.repos.d/CentOS-Base.repo
    6 #sed -i -e "s/^distroverpkg=centos-release/distroverpkg=redhat-release/" $1/etc/yum.conf
Note: See TracChangeset for help on using the changeset viewer.