#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
oglive
ramon 2018-01-17 12:03:40 +00:00
parent 2e072d295d
commit 6c8f1c2308
1 changed files with 6 additions and 0 deletions

View File

@ -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