Changeset 470 in ProjectBuilder for projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec
- Timestamp:
- Jun 2, 2008, 7:11:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec
r469 r470 44 44 %post 45 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 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 50 54 51 55 # Include dploy in sudoers 52 grep -qE '^dploy ' /etc/sudoers56 grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep %{_sysconfdir}/init.d/dhcpd 53 57 if [ $? -ne 0 ]; then 54 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers58 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> %{_sysconfdir}/sudoers 55 59 fi 56 60
Note:
See TracChangeset
for help on using the changeset viewer.