diff options
author | James Meyer <james.meyer@operamail.com> | 2012-09-20 21:10:42 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-09-20 21:10:42 (GMT) |
commit | 24f531c22f8c07112d4d71ae37f6f65a85f6e815 (patch) | |
tree | 3c8b35fb1fc5dd3eada80b8ad2a7f32a5a253511 /abs/core/LinHES-config/myth_settings_wrapper.sh | |
parent | 269509031d79a1e0b455fa2ad2daeb8477ddc470 (diff) | |
download | linhes_pkgbuild-24f531c22f8c07112d4d71ae37f6f65a85f6e815.zip linhes_pkgbuild-24f531c22f8c07112d4d71ae37f6f65a85f6e815.tar.gz linhes_pkgbuild-24f531c22f8c07112d4d71ae37f6f65a85f6e815.tar.bz2 |
LinHES-config: write out /etc/exports for non-sg systems
Diffstat (limited to 'abs/core/LinHES-config/myth_settings_wrapper.sh')
-rw-r--r-- | abs/core/LinHES-config/myth_settings_wrapper.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/abs/core/LinHES-config/myth_settings_wrapper.sh b/abs/core/LinHES-config/myth_settings_wrapper.sh index 7bf8782..90d41de 100644 --- a/abs/core/LinHES-config/myth_settings_wrapper.sh +++ b/abs/core/LinHES-config/myth_settings_wrapper.sh @@ -1,4 +1,5 @@ #!/bin/bash +MYTH_RUN_STATUS="1" . /etc/profile . /etc/systemconfig shopt -s -o nounset @@ -103,6 +104,9 @@ do echo "template is hostsettings" Thistemplate=syssettings loadhost=true + elif [ x$Thistemplate = x"custom" ] + then + echo "template is custom" else echo "invalid template name" exit 1 @@ -171,8 +175,15 @@ case $OPERATION in ;; load) - #this loads the distro default file, it's not active by any hosts - mythutil --import-settings --infile $TEMPLATES/$Thistemplate/distro_default.xml + if [ x$Thistemplate = "xcustom" ] + then + define_xml $5 $hostname settings $6 + load_xml $gen_xml > /tmp/load_xml_custom.log + + else + #this loads the distro default file, it's not active by any hosts + mythutil --import-settings --infile $TEMPLATES/$Thistemplate/distro_default.xml + fi ;; |