Changeset 476 in ProjectBuilder for projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec
- Timestamp:
- Jun 4, 2008, 4:42:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec
r470 r476 45 45 46 46 %files 47 %defattr(-, dploy,dploy)47 %defattr(-,root,root) 48 48 %doc ChangeLog 49 49 %doc INSTALL COPYING README … … 53 53 54 54 %{perlvendorlib}/* 55 #%{_bindir}/*56 #%{_mandir}/man1/*55 %{_bindir}/* 56 %{_mandir}/man1/* 57 57 %{_mandir}/man3/* 58 58 59 59 %pre 60 60 # Create dploy Account and group if needed 61 grep -qE '^ dploy:' %{_sysconfdir}/group61 grep -qE '^PBPROJ:' %{_sysconfdir}/group 62 62 if [ $? -ne 0 ]; then 63 groupadd dploy63 groupadd PBPROJ 64 64 fi 65 grep -qE '^ dploy:' %{_sysconfdir}/passwd65 grep -qE '^PBPROJ:' %{_sysconfdir}/passwd 66 66 if [ $? -ne 0 ]; then 67 useradd -g dploy dploy67 useradd -g PBPROJ PBPROJ 68 68 fi 69 69 70 70 %post 71 # Open ssh access for dploy account with generated keys 72 mkdir -p ~dploy/.ssh 73 chmod 700 ~dploy/.ssh 74 keyf=~dploy/.ssh/authorized_keys 75 if [ -f $keyf ]; then 76 key=`cut -d' ' -f2 %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub` 77 grep -qE \'$key\' $keyf 78 if [ $? -ne 0 ]; then 79 cat %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub >> $keyf 80 fi 81 else 82 cp %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub $keyf 83 chown dploy:dploy $keyf 84 chmod 600 $keyf 85 fi 71 %{_bindir}/dploy-common-post 86 72 87 73 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.