Changeset 827 for server/common/oursrc/accountadm/vhostadd
- Timestamp:
- Aug 29, 2008, 6:17:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/common/oursrc/accountadm/vhostadd
r765 r827 27 27 IFS=: read user x uid gid x home x <<< "$pw" 28 28 29 user_dn=$(ldapsearch -LLL -x -b ou=People,dc=scripts,dc=mit,dc=edu '(uid=andersk)' dn | perl -0pe 's/\n //g; s/^dn: //') 30 29 31 printf "Docroot: $home/web_scripts" >&2 30 32 read subdir … … 50 52 apacheSuexecUid: $uid 51 53 apacheSuexecGid: $gid 54 55 dn: scriptsVhostName=$host,ou=VirtualHosts,dc=scripts,dc=mit,dc=edu 56 objectClass: scriptsVhost 57 objectClass: top 58 scriptsVhostName: $host 59 EOF 60 61 if [ "${host%mit.edu}" != "$host" ]; then 62 cat <<EOF >> "$tmpfile" 63 scriptsVhostAlias: ${host%.mit.edu} 64 EOF 65 fi 66 67 cat <<EOF >> "$tmpfile" 68 scriptsVhostAccount: $user_dn 69 scriptsVhostDirectory: ${subdir#/} 52 70 EOF 53 71
Note: See TracChangeset
for help on using the changeset viewer.