Changeset 470 in ProjectBuilder for projects/dploy/pbconf/devel/dploy-pxe
- Timestamp:
- Jun 2, 2008, 7:11:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/dploy/pbconf/devel/dploy-pxe/rpm/dploy-pxe.spec
r421 r470 15 15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) 16 16 BuildArch: noarch 17 Requires: dploy-common, tftp-server, sudo, perl, PBDEP17 Requires: dploy-common, tftp-server, sudo, perl, syslinux, PBDEP 18 18 19 19 %description … … 43 43 44 44 %post 45 # Include dploy in sudoers 46 grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep /bin/umount 47 if [ $? -ne 0 ]; then 48 echo 'dploy ALL=NOPASSWD: /bin/mount -o loop ?*' >> %{_sysconfdir}/sudoers 49 echo 'dploy ALL=NOPASSWD: /bin/umount ?*' >> %{_sysconfdir}/sudoers 50 fi 51 52 # Setup all required paths for tftpboot environment 53 pathpxe=`grep pathpxe %{_sysconfdir}/PBPROJ/dploy.conf | cut -d= -f2` 54 for p in $pathpxe $pathpxe/../mondorescue $pathpxe/../linuxcoe; do 55 if [ ! -d $p ]; then 56 mkdir -p $p 57 fi 58 chgrp dploy $p 59 chmod 775 $p 60 done 45 61 46 62 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.