Changeset 476 in ProjectBuilder for projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec
- Timestamp:
- Jun 4, 2008, 4:42:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec
r470 r476 41 41 #%doc INSTALL COPYING README AUTHORS NEWS 42 42 %{_bindir}/* 43 %{_mandir}/man1/* 43 44 44 45 %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 60 47 61 48 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.