summaryrefslogtreecommitdiffstats
path: root/abs/core/supplemental-web/contents/process.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/supplemental-web/contents/process.py')
-rw-r--r--abs/core/supplemental-web/contents/process.py19
1 files changed, 6 insertions, 13 deletions
diff --git a/abs/core/supplemental-web/contents/process.py b/abs/core/supplemental-web/contents/process.py
index 1099817..c4f6170 100644
--- a/abs/core/supplemental-web/contents/process.py
+++ b/abs/core/supplemental-web/contents/process.py
@@ -100,6 +100,7 @@ def go_backup(myhost):
myhostname = socket.gethostname()
results="Nothing happened"
command= "sudo /usr/LH/bin/lh_system_backup_job"
+ print command
command2="sleep 1; /data/srv/hobbit/server/ext/hbnotes.py"
results=os.popen(command,'r')
os.popen(command2,'r')
@@ -124,25 +125,17 @@ def go_optimize(myhost):
myhostname = socket.gethostname()
if myhostname.strip() == myhost.strip():
command="/usr/LH/bin/optimize_mythdb.py"
+ print command
results=os.popen(command,'r')
else:
results='This host does not run a database'
return results
def go_update(myhost,update_type):
- myhostname = socket.gethostname()
- if myhostname.strip() == myhost.strip():
- cmd="sudo /usr/bin/update_system "
- command=cmd + update_type
-
- else:
- cmd=" call pacman update_system "
- cmd+=update_type
- command="/usr/bin/func \"" + myhost.strip() + "*\" " + cmd
- print command
-
- #print command
-
+ cmd=" call pacman update_system "
+ cmd+=update_type
+ command="/usr/bin/func \"" + myhost.strip() + "*\" " + cmd
+ print command
results=os.popen(command,'r')
return results