X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=getconf.py;h=155c26ff3b85bb9ca1292b55b609313f93cdcfd0;hb=d5b0651a666c9a6b2deb4103ed15c3c06075395d;hp=31e035c9965d58f782a6ca53c1b0d488f3b8accd;hpb=d0652340b89d51c6115edb13d5c7c72b34dea66f;p=monitor.git diff --git a/getconf.py b/getconf.py index 31e035c..155c26f 100755 --- a/getconf.py +++ b/getconf.py @@ -8,13 +8,13 @@ import os def getconf(hostname, force=False, media=None): api = plc.PLC(auth.auth, auth.plc) n = api.GetNodes(hostname) - filename = "bootcd-alpha/" + hostname + ".txt" + filename = "bootcd/" + hostname + ".txt" if not os.path.exists(filename) or force: - f = open("bootcd-alpha/" + hostname + ".txt", 'w') + f = open("bootcd/" + hostname + ".txt", 'w') f.write( api.AdmGenerateNodeConfFile(n[0]['node_id']) ) f.close() - print os.system("cd bootcd-alpha; ./build.sh -f %s.txt -t iso -o /plc/data/var/www/html/bootcds/%s.iso &> /dev/null" % ( hostname, hostname)) - print os.system("cd bootcd-alpha; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname)) + print os.system("cd bootcd; ./build.sh -f %s.txt -t iso -o /plc/data/var/www/html/bootcds/%s.iso &> /dev/null" % ( hostname, hostname)) + print os.system("cd bootcd; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname)) else: # assume that the images have already been generated.. pass