Changeset 470 in ProjectBuilder for projects/dploy
- Timestamp:
- Jun 2, 2008, 7:11:23 PM (17 years ago)
- Location:
- projects/dploy/pbconf/devel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec
r468 r470 59 59 %pre 60 60 # Create dploy Account and group if needed 61 grep -qE '^dploy:' /etc/group61 grep -qE '^dploy:' %{_sysconfdir}/group 62 62 if [ $? -ne 0 ]; then 63 63 groupadd dploy 64 64 fi 65 grep -qE '^dploy:' /etc/passwd65 grep -qE '^dploy:' %{_sysconfdir}/passwd 66 66 if [ $? -ne 0 ]; then 67 67 useradd -g dploy dploy -
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 -
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.