Fixers in manager_apache
This commit is contained in:
parent
8231aa715c
commit
592ad67719
5 changed files with 66 additions and 49 deletions
|
|
@ -18,13 +18,13 @@ class ServerTask(Task):
|
|||
|
||||
self.name_task='Edit virtualhost in server'
|
||||
|
||||
self.description_task='Edot a virtual host in a server, or many of them'
|
||||
self.description_task='Edit a virtual host in a server, or many of them'
|
||||
|
||||
self.codename_task='edit_virtualhost_apache'
|
||||
|
||||
self.files=[]
|
||||
|
||||
self.files=[['modules/apache/scripts/manage_apache.py', 0o755], ['modules/apache/scripts/files/vhost.tpl', 0o644]]
|
||||
self.files=[['modules/apache/scripts/manage_apache.py', 0o755], ['modules/apache/scripts/add_php_vhost.py', 0o755], ['modules/apache/scripts/files/vhost.tpl', 0o644]]
|
||||
|
||||
if self.data['ssl']=='2':
|
||||
|
||||
|
|
@ -104,10 +104,10 @@ class ServerTask(Task):
|
|||
if self.data['php']!='':
|
||||
php_support='--php_version='+self.data['php']
|
||||
|
||||
self.files.append(['modules/apache/scripts/check_php.sh', 0o700])
|
||||
self.files.append(['modules/apache/scripts/add_php_vhost.py', 0o700])
|
||||
#self.files.append(['modules/apache/scripts/check_php.sh', 0o700])
|
||||
#self.files.append(['modules/apache/scripts/add_php_vhost.py', 0o700])
|
||||
|
||||
self.commands_to_execute.append(['modules/apache/scripts/check_php.sh', self.data['php']])
|
||||
#self.commands_to_execute.append(['modules/apache/scripts/check_php.sh', self.data['php']])
|
||||
|
||||
self.commands_to_execute.append(['modules/apache/scripts/add_php_vhost.py', '--user=%s --php_version=%s --domain=%s' % (self.data['user'], self.data['php'], self.data['domain']), 'sudo'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue