Merge pull request 'refs #2514 run the new extension-less scripts from the cloning engine' (#46) from extensionless-scripts into main

Reviewed-on: #46
main 7.0.0
Natalia Serrano 2025-07-18 14:29:38 +02:00
commit 1a00b715e0
4 changed files with 16 additions and 4 deletions

View File

@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [7.0.0] - 2025-07-18
### Changed
- Run the new extension-less scripts from the cloning engine
## [6.3.0] - 2025-07-18
### Added

View File

@ -1,3 +1,9 @@
ogagent (7.0.0-1) stable; urgency=medium
* Run the new extension-less scripts from the cloning engine
-- OpenGnsys developers <info@opengnsys.es> Fri, 18 Jul 2025 14:27:04 +0200
ogagent (6.3.0-1) stable; urgency=medium
* Add new parameter for Configurar

View File

@ -1 +1 @@
6.3.0
7.0.0

View File

@ -259,12 +259,12 @@ class ogLiveWorker(ServerWorker):
self.REST.sendMessage ('clients/status/webhook', body)
def interfaceAdmin (self, method, parametros=[]):
if method in ['Apagar', 'CambiarAcceso', 'Configurar', 'CrearImagen', 'CrearImagenGit', 'ModificarImagenGit', 'EjecutarScript', 'getConfiguration', 'getIpAddress', 'IniciarSesion', 'InventarioHardware', 'InventarioSoftware', 'Reiniciar', 'RestaurarImagen', 'RestaurarImagenGit']:
if method not in ['ConsolaRemota', 'procesaCache']:
## python
logger.debug (f'({method}) is a python method')
exe = '{}/{}.py'.format (self.pathinterface, method)
exe = '{}/{}'.format (self.pathinterface, method)
proc = [exe]+parametros
else: ## ConsolaRemota procesaCache
else:
## bash
logger.debug (f'({method}) is a bash method')
exe = '{}/{}'.format (self.pathinterface, method)