Fixes in updates

This commit is contained in:
Antonio de la Rosa 2022-02-11 00:12:11 +01:00
parent 25d98341ac
commit 7a3fe536a8
7 changed files with 94 additions and 9 deletions

14
tasks/system/updates.py Normal file
View file

@ -0,0 +1,14 @@
from modules.pastafari2.libraries.task import Task
from modules.pastafari2.models.pastafari2 import ServerDbTask
class ServerTask(Task):
def __init__(self, server, conn, remote_user='root', remote_password='', private_key='./ssh/id_rsa', password_key='', remote_path='pastafari2', task_id=0, data={}):
super().__init__(server, conn, remote_user, remote_password, private_key, password_key, remote_path, task_id, data)
self.files=[['modules/pastafari2/scripts/system/updates.py', 0o755]]
self.commands_to_execute=[]
self.commands_to_execute.append(['modules/pastafari2/scripts/system/updates.py', ''])