[omd-commits] OMD Git: omd: omd: "/usr/bin/omd su" executes the site-specific omd command

git version control git at mathias-kettner.de
Wed Jun 22 12:55:24 CEST 2011


Module:   omd
Branch:   master
Commit:   ae73c90daacb77885f9be55e734d9b23ccfb1f0d
URL:      http://omdistro.org/projects/omd/repository/revisions/ae73c90daacb77885f9be55e734d9b23ccfb1f0d

Author:   Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Wed Jun 22 12:51:31 2011 +0200
Commiter: Gerhard Lausser <gerhard.lausser at consol.de>
Date:     Wed Jun 22 12:51:31 2011 +0200

omd: "/usr/bin/omd su" executes the site-specific omd command

---

 packages/omd/omd |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages/omd/omd b/packages/omd/omd
index 6b1379a..c53e407 100644
--- a/packages/omd/omd
+++ b/packages/omd/omd
@@ -2611,7 +2611,7 @@ if g_sitename != None and site_must_exist and not site_exists(g_sitename):
 # Commands operating on an existing site *must* run omd in
 # the same version as the site has! Sole exception: update.
 # That command must be run in the target version
-if g_sitename and site_must_exist and command not in ["update", "su"]:
+if g_sitename and site_must_exist and command != "update":
     v = site_version(g_sitename)
     if OMD_VERSION != v:
         exec_other_omd(v)



More information about the omd-commits mailing list