Added support for php, composer, and php utilities

This commit is contained in:
absurdo 2023-11-26 00:58:51 +01:00
parent def162c1c9
commit 929a13eb88
5 changed files with 91 additions and 5 deletions

View file

@ -14,8 +14,10 @@ class ServerTask(Task):
#self.files.append(['modules/pastafari2/scripts/system/install_psutil.sh', 0o755])
self.files.append(['modules/pastafari2/scripts/system/install_git.py', 0o755])
self.files.append(['modules/pastafari2/scripts/system/install_php.py', 0o755])
self.files.append(['modules/pastafari2/scripts/system/install_composer.sh', 0o755])
#self.files.append(['modules/pastafari2/scripts/system/install_unixutils.sh', 0o755])
self.files.append(['modules/pastafari2/scripts/system/sudoers.d/spanel', 0o640])
self.files.append(['modules/pastafari2/scripts/system/install_leviathanutils.py', 0o755])
self.files.append([self.data['pub_key'], 0o600])
@ -25,12 +27,11 @@ class ServerTask(Task):
self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_python.sh', ''])
self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_git.py', ''])
self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_php.py', ''])
#self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_unixutils.sh', ''])
#self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_psutil.sh', ''])
#' --url_stats='+self.data['url_stats']+
self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_composer.sh', ''])
self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_pzoo_stats.py', '--user='+self.data['ssh_user']+' --pub_key='+self.data['pub_key']+' --group="'+self.data['group_name']+'" --path='+remote_path])
self.commands_to_execute.append(['modules/pastafari2/scripts/system/install_leviathanutils.py', '--user='+self.data['ssh_user']])
def post_task(self):