Changeset 870


Ignore:
Timestamp:
05/16/13 17:10:25 (11 years ago)
Author:
olahaye
Message:

[rpm:packaging] Moved password auto config from jobarchived package to main package as we are not sure that the web interface is installed when running the %post in jobarchived package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/pkg/rpm/jobmonarch.spec.in

    r867 r870  
    118118%__rm -rf $RPM_BUILD_ROOT
    119119
    120 %post -n jobmonarch-jobmond
    121 # $1 = 1 => install ($1 = 2 => upgrade)
    122 if [ "$1" = 1 ]; then
    123     /sbin/chkconfig --add jobmond
    124 elif [ "$1" = 2 ]; then
    125     /sbin/service jobmond condrestart
    126 fi
    127 
    128 %post -n jobmonarch-jobarchived
     120%post
    129121# $1 = 1 => install ($1 = 2 => upgrade)
    130122if [ "$1" = 1 ]; then
     
    138130    # Set the password in the ganglia conf.php
    139131    sed -i -e "s|^//\$JOB_ARCHIVE_SQL_PASSWORD.*|\$JOB_ARCHIVE_SQL_PASSWORD = \"$DB_PASSWD\"|g" %{gangliaaddonsdir}/job_monarch/conf.php
     132fi
     133
     134%post -n jobmonarch-jobmond
     135# $1 = 1 => install ($1 = 2 => upgrade)
     136if [ "$1" = 1 ]; then
     137    /sbin/chkconfig --add jobmond
     138elif [ "$1" = 2 ]; then
     139    /sbin/service jobmond condrestart
     140fi
     141
     142%post -n jobmonarch-jobarchived
     143# $1 = 1 => install ($1 = 2 => upgrade)
     144if [ "$1" = 1 ]; then
    140145    # Enable the service
    141146    /sbin/chkconfig --add jobarchived
Note: See TracChangeset for help on using the changeset viewer.