Fixes in delete php version
This commit is contained in:
parent
4bfd948989
commit
e403599bf5
2 changed files with 76 additions and 8 deletions
|
|
@ -30,7 +30,7 @@ class ServerTask(Task):
|
|||
|
||||
self.codename_task='php-fpm'
|
||||
|
||||
self.files=[['modules/php/scripts/install_php.py', 0o700]]
|
||||
self.files=[['modules/phpserver/scripts/install_php.py', 0o700]]
|
||||
|
||||
# Format first array element is command with the interpreter, the task is agnostic, the files in os directory. The commands are setted with 750 permission.
|
||||
# First element is the file, next elements are the arguments
|
||||
|
|
@ -41,7 +41,7 @@ class ServerTask(Task):
|
|||
|
||||
self.delete_files=[]
|
||||
|
||||
self.delete_directories=['modules/php/scripts/']
|
||||
self.delete_directories=['modules/phpserver/scripts/']
|
||||
|
||||
#self.task=Task(conn)
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ class ServerTask(Task):
|
|||
|
||||
self.version='1.0'
|
||||
|
||||
self.links='<p><a href="{}">{}</a></p>'.format(make_url('pastafari2/php/servers'), _('PHP-FPM servers list'))
|
||||
self.links='<p><a href="{}">{}</a></p>'.format(make_url('phpserver/servers'), _('PHP-FPM servers list'))
|
||||
|
||||
self.arr_form=OrderedDict()
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ class ServerTask(Task):
|
|||
if 'version' in self.data:
|
||||
version=self.data['version']
|
||||
|
||||
self.commands_to_execute=[['/home/{}/pythonenv/bin/python3 -u modules/php/scripts/install_php.py'.format(config_task.remote_user), '--version={}'.format(version)]]
|
||||
self.commands_to_execute=[['/home/{}/pythonenv/bin/python3 -u modules/phpserver/scripts/install_php.py'.format(config_task.remote_user), '--version={}'.format(version)]]
|
||||
#self.commands_to_execute=[['/home/{}/pythonenv/bin/python3 -u modules/apache/scripts/install_apache.py'.format(config_task.remote_user), '']]
|
||||
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue