Changeset 842


Ignore:
Timestamp:
04/25/13 17:18:40 (8 years ago)
Author:
olahaye
Message:

[jobmonarch.spec.in] Fix web_prefixdir so it matches ganglia packaging one.

File:
1 edited

Legend:

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

    r841 r842  
    33%define __check_files %{nil}
    44
    5 %define gangliaroot        %{_datadir}/ganglia
     5%if 0%{?suse_version}
     6%define web_prefixdir /srv/www/htdocs/ganglia
     7%else
     8%define web_prefixdir %{custom_web_prefixdir}
     9%endif
     10
     11%{!?custom_web_prefixdir: %define web_prefixdir /var/www/html/ganglia}
     12
     13%define gangliaroot        %{web_prefixdir}/ganglia
    614%define gangliatemplatedir %{gangliaroot}/templates
    715%define gangliaaddonsdir   %{gangliaroot}/addons
     
    142150    # Set the password in the jobarchived config.
    143151    sed -i -s "s/^#JOB_SQL_PASSWORD.*$/JOB_SQL_PASSWORD\t\t: $DB_PASSWD/g" %{_sysconfdir}/jobarchived.conf
     152    # Set the password in the ganglia conf.php
     153    sed -i -e "s|^//\$JOB_ARCHIVE_SQL_PASSWORD.*|\$JOB_ARCHIVE_SQL_PASSWORD = \"$DB_PASSWD\"|g" %{gangliaaddonsdir}/job_monarch/conf.php
    144154    # Create the database
    145155    su -l postgres -c "%{_bindir}/createdb jobarchive"
Note: See TracChangeset for help on using the changeset viewer.