mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 10:52:17 +03:00
install feature used
This commit is contained in:
parent
8550ba2d9e
commit
fdd7e240ee
1 changed files with 1 additions and 9 deletions
|
@ -94,7 +94,7 @@ class ExecutionManager(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.install_deb(downloaded_file)
|
Util.install_with_gdebi(downloaded_file)
|
||||||
self.logger.debug('[ExecutionManager] Plugin installed.')
|
self.logger.debug('[ExecutionManager] Plugin installed.')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.logger.error('[ExecutionManager] Could not install plugin. Error Message: {}'.format(str(e)))
|
self.logger.error('[ExecutionManager] Could not install plugin. Error Message: {}'.format(str(e)))
|
||||||
|
@ -439,14 +439,6 @@ class ExecutionManager(object):
|
||||||
agent_execution_id=json_data['agentCommandExecutionId'],
|
agent_execution_id=json_data['agentCommandExecutionId'],
|
||||||
user_execution_id=json_data['userCommandExecutionId'])
|
user_execution_id=json_data['userCommandExecutionId'])
|
||||||
|
|
||||||
def install_deb(self, full_path):
|
|
||||||
try:
|
|
||||||
process = subprocess.Popen('gdebi -n ' + full_path, shell=True)
|
|
||||||
process.wait()
|
|
||||||
except Exception as e:
|
|
||||||
self.logger.error(
|
|
||||||
'[ExecutionManager] Deb package couldn\'t install properly. Error Message: {}'.format(str(e)))
|
|
||||||
|
|
||||||
def remove_file(self, full_path):
|
def remove_file(self, full_path):
|
||||||
try:
|
try:
|
||||||
subprocess.Popen('rm ' + full_path, shell=True)
|
subprocess.Popen('rm ' + full_path, shell=True)
|
||||||
|
|
Loading…
Reference in a new issue