diff options
author | James Meyer <james.meyer@operamail.com> | 2012-05-12 22:12:33 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-05-12 22:12:33 (GMT) |
commit | c4a526ab0e33d6667b59351ddbe2ac0cd098a1c1 (patch) | |
tree | c3327ad171395a2a92165a021cf793c2e536ad43 /abs/core/LinHES-system/switch_web.sh | |
parent | 3a491ade29620b1e0436825d3049affbf024f35e (diff) | |
download | linhes_pkgbuild-c4a526ab0e33d6667b59351ddbe2ac0cd098a1c1.zip linhes_pkgbuild-c4a526ab0e33d6667b59351ddbe2ac0cd098a1c1.tar.gz linhes_pkgbuild-c4a526ab0e33d6667b59351ddbe2ac0cd098a1c1.tar.bz2 |
LinHES-system: couple things here, but mostly fix the osd message system
- add lh_message.sh
- Move OSD stuff out of linHES-session and instead have it call lh_message.sh
- add switch_web.sh
Diffstat (limited to 'abs/core/LinHES-system/switch_web.sh')
-rw-r--r-- | abs/core/LinHES-system/switch_web.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/switch_web.sh b/abs/core/LinHES-system/switch_web.sh new file mode 100644 index 0000000..bf57764 --- /dev/null +++ b/abs/core/LinHES-system/switch_web.sh @@ -0,0 +1,29 @@ +#!/bin/bash +#This script is used to switch the default homepage between supplementalweb and +#the standard local webpage +. /etc/systemconfig +DATADIR=/data/srv/httpd/htdocs + +function rmindex { + if [ -L $DATADIR/index.html ] + then + rm -f $DATADIR/index.html + fi +} + +if [ $SystemType = Master_backend -o $SystemType = Standalone ] +then + if [ x$1 = xsupplemental ] + then + rmindex + ln -s $DATADIR/alt_index.html $DATADIR/index.html + else + rmindex + ln -s $DATADIR/index.htm $DATADIR/index.html + fi +else + echo "This service is only available for StandAlone or Master_backend LinHES systems" + +fi + + |