Exemplo n.º 1
0
    def check_for_updates(self, force=True):
        """[summary]

        Keyword Arguments:
            force {bool} -- [description] (default: {True})
        """

        updater.run(self, force)
Exemplo n.º 2
0
 def check_for_updates(self, force=True):
     updater.run(self, force)
Exemplo n.º 3
0
import updater
updater.run()
while True:
	from ATS import site
	while True:
		if __name__ == '__main__':
			site.run(debug=True)
			site.run(host='0.0.0.0', port='6000')
Exemplo n.º 4
0
 def check_for_updates(self, force=True):
     updater.run(self, force)
Exemplo n.º 5
0
conf.read('/etc/xop.conf');

hostid = conf.get('global', 'hostid');
uri = conf.get('global', 'uri');

if uri[-1:] == '/':
	uri = uri[:-1]

if (args.skipsleep):
	print("Running immediately");
else:
	random.seed(hostid + "%f" % random.random());
	t = random.random() * 300;
	print("Sleeping for %d seconds" % t);
	time.sleep(t);

import updater;

print("Checking server for latest client version");
updater.run(uri, version, args.skipupgrade);
	
import update, disks, interfaces, packages;
print "Updating disks";
disks.run(hostid, uri);
print "Updating networking information"
interfaces.run(hostid, uri);
print "Updating package information";
packages.run(hostid, uri);
print "Updating host information";
update.run(hostid, uri);