Ignore:
Timestamp:
Jun 2, 2008, 7:11:23 PM (16 years ago)
Author:
Bruno Cornec
Message:
  • dploy-pxe requires syslinux (at least on rhel 5)
  • dploy-pxe adds permission to mount/umount iso images via sudoers
  • dploy-pxe now creates all required dirs under /tftpboot
  • dploy-dhcp owns the /etc/dhcpd.conf file
  • dploy-dhcp doesn't include by default a non-existent /etc/dploy/dhcp.conf file

(Those post install script should become real scripts launched by all install means)

File:
1 edited

Legend:

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

    r469 r470  
    4444%post
    4545# 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
     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
     52chgrp dploy %{_sysconfdir}/dhcpd.conf
     53chmod 664 %{_sysconfdir}/dhcpd.conf
    5054
    5155# Include dploy in sudoers
    52 grep -qE '^dploy ' /etc/sudoers
     56grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep %{_sysconfdir}/init.d/dhcpd
    5357if [ $? -ne 0 ]; then
    54     echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers
     58    echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> %{_sysconfdir}/sudoers
    5559fi
    5660
Note: See TracChangeset for help on using the changeset viewer.