summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_supplemental.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-09-23 18:44:08 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-09-23 18:44:08 (GMT)
commit048e83695f2b4cb9ddc118e128a7d08f7d48e651 (patch)
tree2a4844ed9e01a42f5a7d344f531a71b6d30a1b20 /abs/core/LinHES-config/mv_supplemental.py
parente36902486689cd6a12947fb1c8d3e01712b726b8 (diff)
downloadlinhes_pkgbuild-048e83695f2b4cb9ddc118e128a7d08f7d48e651.zip
linhes_pkgbuild-048e83695f2b4cb9ddc118e128a7d08f7d48e651.tar.gz
linhes_pkgbuild-048e83695f2b4cb9ddc118e128a7d08f7d48e651.tar.bz2
LinHES-config: ensure that xymonserver is installed after upgrades. This requires a --dbonly pacman call and then later a normal pacman install. This was needed because after upgrades /home/xymon is still on the FS and the xymonserver package failed to to install because of it
Diffstat (limited to 'abs/core/LinHES-config/mv_supplemental.py')
-rwxr-xr-xabs/core/LinHES-config/mv_supplemental.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/abs/core/LinHES-config/mv_supplemental.py b/abs/core/LinHES-config/mv_supplemental.py
index 608e997..2b8bd2f 100755
--- a/abs/core/LinHES-config/mv_supplemental.py
+++ b/abs/core/LinHES-config/mv_supplemental.py
@@ -31,7 +31,7 @@ def windowmanager(systemconfig):
logging.info("__End of windowmanager \n")
-def supplemental(systemconfig):
+def supplemental(systemconfig,this_is_install = False):
logging.info("____Start of supplemental config ____")
try:
supplemental=systemconfig.get("supplemental")
@@ -39,6 +39,11 @@ def supplemental(systemconfig):
supplemental = "0"
if supplemental == "1":
logging.info(" Installing supplemental system\n")
+ if this_is_install == True:
+ if os.path.exists('/home/xymon/server'):
+ cmd='''pacman --noconfirm --dbonly -Sddf xymonserver'''
+ mv_common.runcmd(cmd)
+
cmd='''/usr/LH/bin/install_supplemental_service.sh'''
mv_common.runcmd(cmd)
logging.info("__End of supplemental\n") \ No newline at end of file