summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/hbnotes.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xymon/hbnotes.py')
-rw-r--r--abs/core/xymon/hbnotes.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/abs/core/xymon/hbnotes.py b/abs/core/xymon/hbnotes.py
index cbf755b..6751865 100644
--- a/abs/core/xymon/hbnotes.py
+++ b/abs/core/xymon/hbnotes.py
@@ -20,17 +20,17 @@ except:
def createdropdown(currenthostype):
- dir = "/myth/system_backup"
+ dir = "/data/storage/disk0/backup/system_backups"
dropdown=" "
- #dropdown='''
- #<input name="param2" type="radio" value="Restore" />Restore database </>
- #<select name="param1">
- #'''
- #if os.path.exists(dir):
- #files = os.listdir(dir)
- #for file in os.listdir(dir):
- #if (file.endswith(".tgz")):
- #dropdown+='<option value="' + file + '">' + file + '</option> '
+ dropdown='''
+ <input name="param2" type="radio" value="Restore" />Restore database </>
+ <select name="param1">
+ '''
+ if os.path.exists(dir):
+ files = os.listdir(dir)
+ for file in os.listdir(dir):
+ if (file.endswith(".tgz")):
+ dropdown+='<option value="' + file + '">' + file + '</option> '
dropdown+='</select> <br><input name="param2" type="radio" value="Backup" checked="checked" />Backup database<br /> '
dropdown+='<input name="param2" type="radio" value="Optimize" />Optimize database<br /> '
if currenthostype == "Master_backend":