chiark / gitweb /
add python-yaml to release.debian.org
[dsa-metapackages.git] / apache2-vhost-update
index 5bddf71..24d59c8 100755 (executable)
@@ -122,6 +122,20 @@ if grep -i include "$DESTINATION/$site" > /dev/null; then
        exit 1
 fi
 
+if grep -i LoadModule "$DESTINATION/$site" > /dev/null; then
+       echo "New site may have LoadModule statements - rejecting." >&2
+       rm -f "$DESTINATION/$site"
+       co "$DESTINATION/$site"
+       exit 1
+fi
+
+if grep -i LoadFile "$DESTINATION/$site" > /dev/null; then
+       echo "New site may have LoadFile statements - rejecting." >&2
+       rm -f "$DESTINATION/$site"
+       co "$DESTINATION/$site"
+       exit 1
+fi
+
 /usr/sbin/apache2ctl configtest
 if [ "$?" != "0" ]; then
        echo "configtest returned errors; reverting." >&2