chmod pin automatically. remove boot up message now it doesnt take so long to boot.
authorBernard Blackham <dagobah@ucc.asn.au>
Sat, 7 May 2005 10:18:37 +0000 (10:18 +0000)
committerBernard Blackham <dagobah@ucc.asn.au>
Sat, 7 May 2005 10:18:37 +0000 (10:18 +0000)
sql-edition/servers/VendServer.py

index 12ebe5b..22958bd 100755 (executable)
@@ -127,8 +127,8 @@ def get_pin(uid):
                logging.info('getting pin for uid %d: .pin not found in home directory'%uid)
                return None
        if s.st_mode & 077:
-               logging.info('getting pin for uid %d: .pin has wrong permissions'%uid)
-               return None
+               logging.info('getting pin for uid %d: .pin has wrong permissions. Fixing.'%uid)
+               os.chmod(pinfile, 0600)
        try:
                f = file(pinfile)
        except IOError:
@@ -710,11 +710,9 @@ def run_forever(rfh, wfh, options, cf):
 
        if USE_DB: db = DispenseDatabase(v, cf.DBServer, cf.DBName, cf.DBUser, cf.DBPassword)
 
-       vstatus.mk.set_message(GREETING)
        setup_idlers(v)
        choose_idler()
-       vstatus.mk.set_message("Booted")
-
+       vstatus.mk.set_message(GREETING)
 
        # This main loop was hideous and the work of the devil.
        # This has now been fixed (mostly) - mtearle

UCC git Repository :: git.ucc.asn.au