diff --git a/xCATsn/debian/install b/xCATsn/debian/install index 9132f94f5..80345cbb2 100644 --- a/xCATsn/debian/install +++ b/xCATsn/debian/install @@ -1,3 +1,4 @@ LICENSE.html opt/xcat/share/doc/packages/xCAT xCATSN etc xcat.conf etc/apache2/conf.d +xcat.conf.apach24 etc/apache2/conf.d/ diff --git a/xCATsn/debian/postinst b/xCATsn/debian/postinst index ac91a1517..d90483185 100644 --- a/xCATsn/debian/postinst +++ b/xCATsn/debian/postinst @@ -28,6 +28,14 @@ case "$1" in rm /etc/xCATMN fi + ver=$(cat /etc/issue |awk '{print $2}') + num=${ver%.*} + file="xcat.conf.apach24" + if [ $num -gt 12 ];then + mv /etc/apache2/conf.d/xcat.conf.apach24 /etc/apache2/conf-enabled/ + fi + + apachedaemon='apache2' update-rc.d $apachedaemon enable