#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-378ad31fedc9oglive
parent
2e072d295d
commit
6c8f1c2308
|
@ -98,6 +98,12 @@ class OpenGnSysWorker(ServerWorker):
|
||||||
# Raise error after timeout
|
# Raise error after timeout
|
||||||
if not self.interface:
|
if not self.interface:
|
||||||
raise e
|
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
|
# Generate random secret to send on activation
|
||||||
self.random = ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(self.length))
|
self.random = ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(self.length))
|
||||||
# Send initalization message
|
# Send initalization message
|
||||||
|
|
Loading…
Reference in New Issue