source: branches/fc20-dev/locker/sbin/vhosteditat @ 2816

Last change on this file since 2816 was 2816, checked in by achernya, 5 years ago
Variation of vhostedit that takes a server as argument Useful ever since we switched to the LDAP cluster.
  • Property svn:executable set to *
File size: 308 bytes
Line 
1#!/bin/sh
2
3if [ ! "$2" ]; then
4    echo "Usage: $0 <vhost>"
5    exit 2
6fi
7
8exec ldapvi --bind sasl -Y GSSAPI -h $1 -b dc=scripts,dc=mit,dc=edu \
9       "(|(&(objectClass=apacheConfig)(|(apacheServerName=$2)(apacheServerAlias=$2)))(&(objectClass=scriptsVhost)(|(scriptsVhostName=$2)(scriptsVhostAlias=$2))))"
Note: See TracBrowser for help on using the repository browser.