xcat-ui: fixed debian files

- don't need apachedaemon, as this is same across ubuntu and debian
- added the plugins in the correct place
- created the link for webportal

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
arifali 2012-04-10 10:28:30 +00:00
parent 3946f00fd5
commit 9f010a3b76
5 changed files with 12 additions and 9 deletions

View File

@ -1 +1,2 @@
opt/xcat/ui
opt/xcat/lib/perl/xCAT_plugin/

View File

@ -5,3 +5,5 @@ etc opt/xcat/ui/
images opt/xcat/ui/
js opt/xcat/ui/
lib opt/xcat/ui/
xcat/plugins/web.pm opt/xcat/lib/perl/xCAT_plugin
xcat/plugins/webportal.pm opt/xcat/lib/perl/xCAT_plugin

2
xCAT-UI/debian/links Normal file
View File

@ -0,0 +1,2 @@
#opt/xcat/ui/etc/apache2/conf.d/xcat-ui.conf etc/apache2/conf.d/xcat-ui.conf
opt/xcat/bin/xcatclientnnr opt/xcat/bin/webportal

View File

@ -1,5 +1,5 @@
#!/bin/sh
# postinst script for openmpi
# postinst script for xcat-ui
#
# see: dh_installdeb(1)
@ -21,9 +21,9 @@ set -e
case "$1" in
configure)
apachedaemon=apache2
/bin/rm -f /etc/$apachedaemon/conf.d/xcat-ui.conf
/bin/ln -s /opt/xcat/ui/etc/apache2/conf.d/xcat-ui.conf /etc/$apachedaemon/conf.d/xcat-ui.conf
/etc/init.d/$apachedaemon reload
/bin/rm -f /etc/apache2/conf.d/xcat-ui.conf
/bin/ln -s /opt/xcat/ui/etc/apache2/conf.d/xcat-ui.conf /etc/apache2/conf.d/xcat-ui.conf
/etc/init.d/apache2 restart
# automatically put the encrypted passwd into the xcat passwd db
/opt/xcat/sbin/chtab key=xcat,username=root passwd.password=`grep root /etc/shadow|cut -d : -f 2`

View File

@ -22,11 +22,9 @@ case "$1" in
;;
remove)
apachedaemon=apache2
echo "Undoing $apachedaemon configuration for xCAT..."
/bin/rm -f /etc/$apachedaemon/conf.d/xcat-ui.conf
/etc/init.d/$apachedaemon reload
echo "Undoing apache2 configuration for xCAT..."
/bin/rm -f /etc/apache2/conf.d/xcat-ui.conf
/etc/init.d/apache2 restart
;;
failed-upgrade)