Merge branch 'master' of mathias-kettner.de:omd
[omd.git] / packages / nagios / NAGIOS_THEME.hook
blob9b92ec862a02c78497b984d32797474e0584e3f9
1 #!/bin/bash
3 # Alias: Nagios Themes
4 # Menu: Web GUI
5 # Description:
6 # Switch between installed Nagios Themes
8 case "$1" in
9 default)
10 echo "classicui"
12 choices)
13 echo "classicui: enable ClassicUI"
14 echo "exfoliation: enable Exfoliation Theme"
16 set)
17 if [ "$2" == "classicui" ];then
18 ln -sfn ../../../../../share/nagios/htdocs/themes/$2/stylesheets $OMD_ROOT/local/share/nagios/htdocs/theme/stylesheets
19 ln -sfn ../../../../../share/nagios/htdocs/themes/$2/images $OMD_ROOT/local/share/nagios/htdocs/theme/images
21 elif [ "$2" == "exfoliation" ];then
22 ln -sfn ../../../../../share/nagios/htdocs/themes/$2/stylesheets $OMD_ROOT/local/share/nagios/htdocs/theme/stylesheets
23 ln -sfn ../../../../../share/nagios/htdocs/themes/$2/images $OMD_ROOT/local/share/nagios/htdocs/theme/images
26 depends)
27 [ "$CONFIG_CORE" = "nagios" ]
30 esac