#!/bin/sh
# Last step of BDDS install script.  
# Executed after all components have been installed and started.


echo "Cleaning up after arrange"
rm -f /replicated/jail/named/etc/named.conf.bak
rm -rf /replicated/jail/named/var/cache/bind.bak

echo "Upgrading restartdhcp.sh"
cp -f ./scripts/restartdhcp.sh /var/mmsuite/dhcp_server_controller/scripts/

# Enable DNS and DHCP services.
# We do that after installing because we don't want the installer to stop/start the services.
# NOTE: These two below are commented out by the upgrade procedure, when MDDS is upgraded
# and therefore 
/usr/local/bluecat/PsmClient node set dns-enable=1
/usr/local/bluecat/PsmClient node set dhcp-enable=1

echo "post install complete"