Changeset 758 in ProjectBuilder for projects/linuxcoe/pbconf


Ignore:
Timestamp:
Apr 4, 2009, 8:43:18 PM (15 years ago)
Author:
Bruno Cornec
Message:

Adds support for http configuration and reload automatically for rpm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/rpm/linuxcoe-sd-base.spec

    r734 r758  
    6060%config(noreplace) PBsysconfdir/includes/config.state
    6161%config(noreplace) PBsysconfdir/includes/sudoers
    62 %config(noreplace) /etc/logrotate.d/LinuxCOE-SystemDesigner
     62%config(noreplace) %{_sysconfdir}/logrotate.d/LinuxCOE-SystemDesigner
    6363%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
    6464%{_var}/cache/PBPROVIDE
     
    6767PBprefix
    6868
     69%post
     70# We should add a link so that Apache finds the new conf file
     71ln -sf PBsysconfdir/includes/LinuxCOE-SystemDesigner.conf /etc/httpd/conf.d
     72
     73# httpd
     74LANGUAGE=C /etc/init.d/httpd status 2>&1 | grep -q stop
     75if [ $? -eq 0 ]; then
     76        /etc/init.d/httpd start
     77else
     78        /etc/init.d/httpd reload
     79fi
     80chkconfig --add httpd
     81
    6982%changelog
    7083PBLOG
Note: See TracChangeset for help on using the changeset viewer.