diff --git a/xCAT/debian/dirs b/xCAT/debian/dirs index 7fed8339e..f1b529689 100644 --- a/xCAT/debian/dirs +++ b/xCAT/debian/dirs @@ -5,5 +5,6 @@ install/prescripts install/kdump opt/xcat/share/xcat etc/apache2/conf.d +etc/apache2/conf-available etc/apache2/conf-enabled opt/xcat/share/doc/packages/xCAT diff --git a/xCAT/debian/install b/xCAT/debian/install index ab485abda..33798984d 100644 --- a/xCAT/debian/install +++ b/xCAT/debian/install @@ -1,5 +1,6 @@ xcat.conf etc/apache2/conf.d/ -xcat.conf.apach24 etc/apache2/conf-enabled +xcat.conf etc/apache2/conf-available/ +xcat.conf.apach24 etc/apache2/conf-available/ LICENSE.html opt/xcat/share/doc/packages/xCAT postscripts/* install/postscripts/ prescripts/* install/prescripts/ diff --git a/xCAT/debian/postinst b/xCAT/debian/postinst index f48bdd818..509d48446 100644 --- a/xCAT/debian/postinst +++ b/xCAT/debian/postinst @@ -42,7 +42,7 @@ case "$1" in fi # [ -e /etc/apache2/conf-enabled/xcat.conf ] && rm /etc/apache2/conf-enabled/xcat.conf - mv -f /etc/apache2/conf-enabled/xcat.conf.apach24 /etc/apache2/conf-enabled/xcat.conf + ln -s -f /etc/apache2/conf-available/xcat.conf.apach24 /etc/apache2/conf-enabled/xcat.conf /etc/init.d/apache2 restart ;;