Ignore:
Timestamp:
Jun 4, 2008, 4:42:52 PM (16 years ago)
Author:
Bruno Cornec
Message:

moving post install from %post to a dedicated external perl script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec

    r470 r476  
    4141#%doc INSTALL COPYING README AUTHORS NEWS
    4242%{_bindir}/*
     43%{_mandir}/man1/*
    4344
    4445%post
    45 # Include our configuration file in std dhcp.conf file
    46 #grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf
    47 #if [ $? -ne 0 ]; then
    48     #echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf
    49 #fi
    50 
    51 # Give us the rights to modify the DHCP conf file
    52 chgrp dploy %{_sysconfdir}/dhcpd.conf
    53 chmod 664 %{_sysconfdir}/dhcpd.conf
    54 
    55 # Include dploy in sudoers
    56 grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep %{_sysconfdir}/init.d/dhcpd
    57 if [ $? -ne 0 ]; then
    58     echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> %{_sysconfdir}/sudoers
    59 fi
     46%{_bindir}/dploy-dhcp-post
    6047
    6148%changelog
Note: See TracChangeset for help on using the changeset viewer.