Changeset 34 for devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec
- Timestamp:
- 01/24/08 20:05:59 (4 years ago)
- File:
-
- 1 edited
-
devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec
r33 r34 28 28 %{__rm} -rf $RPM_BUILD_ROOT 29 29 export DESTDIR=$RPM_BUILD_ROOT 30 export PREFIX=%{_exec_prefix} 30 export PREFIX=%{_exec_prefix} 31 export CONFDIR=%{_sysconfdir}/PBPROJ 31 32 ./install.sh 32 33 … … 42 43 %post 43 44 # Include our configuration file in std dhcp.conf file 44 grep -qE '^include " PBCONF/dhcpd.conf";' /etc/dhcpd.conf45 grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf 45 46 if [ $? -ne 0 ]; then 46 echo 'include " PBCONF/dhcpd.conf";' >> /etc/dhcpd.conf47 echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf 47 48 fi 48 49 … … 50 51 grep -qE '^dploy ' /etc/sudoers 51 52 if [ $? -ne 0 ]; then 52 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/ dhcpd.conf53 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/sudoers 53 54 fi 54 55
Note: See TracChangeset
for help on using the changeset viewer.
