rm -f $BOOST_LOCK

# awkward, but might save us a lawsuit^H^H^H^H^H^H^H fight or two
if [ -d /usr/share/httpd ] ; then
  # MOVE APACHE2 TO PROPER LOCATIONS
  message "Apache2 needs to be moved to proper locations, please double"
  message "check and watch the httpd output at startup. "
  message "WARNING: httpd.conf will now be in /etc/httpd/conf!"
  
  cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf-old
  cp /etc/httpd/ssl.conf /etc/httpd/ssl.conf-old

  cat /etc/httpd/httpd.conf | sed "s:/usr/share/httpd:/var/www:g" | \
    sed "s:/usr/libexec/libphp4.so:/usr/libexec/httpd/modules/libphp4.so:g" | \
    sed "s:/etc/httpd/ssl.conf:/etc/httpd/conf/ssl.conf:g" > \
    /etc/httpd/conf/httpd.conf
  cat /etc/httpd/ssl.conf | sed "s:/usr/share/httpd:/var/www:g" > \
    /etc/httpd/conf/ssl.conf
  # mv /usr/share/httpd /var/www

  message "Make sure you remove /usr/share/httpd !"

fi

if module_installed php ; then lin php ; fi
