From 6c8f1c2308dfad8acaf3d64d203fb57580071b3b Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 17 Jan 2018 12:03:40 +0000 Subject: [PATCH] #718: Eliminar marcas de arranque al inciciar el servicio de OGAgent; sustituir formato de texto por HTML en {{{README}}} de OGAgent. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5557 a21b9725-9963-47de-94b9-378ad31fedc9 --- src/opengnsys/modules/server/OpenGnSys/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/opengnsys/modules/server/OpenGnSys/__init__.py b/src/opengnsys/modules/server/OpenGnSys/__init__.py index bcbf562..1438e46 100644 --- a/src/opengnsys/modules/server/OpenGnSys/__init__.py +++ b/src/opengnsys/modules/server/OpenGnSys/__init__.py @@ -98,6 +98,12 @@ class OpenGnSysWorker(ServerWorker): # Raise error after timeout if not self.interface: raise e + # Delete marking files + for f in ['ogboot.me', 'ogboot.firstboot', 'ogboot.secondboot']: + try: + os.remove(os.sep + f) + except OSError: + pass # Generate random secret to send on activation self.random = ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(self.length)) # Send initalization message