Changeset 33
- Timestamp:
- 01/22/08 18:51:20 (4 years ago)
- Location:
- devel
- Files:
-
- 2 added
- 2 edited
-
dploy-common (added)
-
dploy-common/install.sh (added)
-
dploy-dhcp/install.sh (modified) (1 diff)
-
pbconf/dploy-dhcp/rpm/dploy-dhcp.spec (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/dploy-dhcp/install.sh
r32 r33 13 13 echo "PBPKG PBVER-rPBREV will be installed under $local" 14 14 mkdir -p $local/bin 15 install -m 0755 -g dploy -o dploybin/dploy-add2dhcp $local/bin15 install -m 0755 bin/dploy-add2dhcp $local/bin -
devel/pbconf/dploy-dhcp/rpm/dploy-dhcp.spec
r32 r33 14 14 Source: PBSRC 15 15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) 16 Requires: d hcp-server, sudo, perl, PBDEP16 Requires: dploy-common, dhcp-server, sudo, perl, PBDEP 17 17 18 18 %description … … 40 40 %{_bindir}/* 41 41 42 %pre43 # Create dploy Account and group if needed44 grep -qE '^dploy:' /etc/group45 if [ $? -ne 0 ]; then46 addgroup dploy47 fi48 grep -qE '^dploy:' /etc/passwd49 if [ $? -ne 0 ]; then50 adduser dploy dploy51 fi52 53 42 %post 54 43 # Include our configuration file in std dhcp.conf file 55 grep -qE '^include "PBCONF/dhcpd.conf";' /etc/ passwd44 grep -qE '^include "PBCONF/dhcpd.conf";' /etc/dhcpd.conf 56 45 if [ $? -ne 0 ]; then 57 46 echo 'include "PBCONF/dhcpd.conf";' >> /etc/dhcpd.conf 58 47 fi 59 48 49 # Include dploy in sudoers 50 grep -qE '^dploy ' /etc/sudoers 51 if [ $? -ne 0 ]; then 52 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> /etc/dhcpd.conf 53 fi 54 60 55 %changelog 61 56 PBLOG
Note: See TracChangeset
for help on using the changeset viewer.
