- for docroot in $docroots; do
- if [ -d $docroot ]; then
- if [ "x$(echo ${docroot}/*)" = "x${docroot}/index.html" ]; then
- if [ "$(wc -l ${docroot}/index.html | awk '{print $1}')" -eq 1 ]; then
- echo "CN: Removing document root directory ${docroot}."
- rm -f $docroot/index.html
- rmdir $docroot || true
- fi
- fi
+ for docroot in $docroots; do
+ if [ -d $docroot ]; then
+ if [ "x$(echo ${docroot}/*)" = "x${docroot}/index.html" ]; then
+ if [ "$(wc -l ${docroot}/index.html | awk '{print $1}')" -eq 1 ]; then
+ echo "CN: Removing document root directory ${docroot}."
+ rm -f $docroot/index.html
+ rmdir $docroot || true