def run(self):
"""Run a configuration script post-install"""
command = ['./constantina/util/constantina_configure.py']
if self.instance:
command.append('--instance')
command.append(self.instance)
if self.hostname:
command.append('--hostname')
command.append(self.hostname)
if self.port:
command.append('--port')
command.append(self.port)
if self.data_root:
command.append('--data-root')
command.append(self.data_root)
if self.username:
command.append('--username')
command.append(self.username)
if self.groupname:
command.append('--groupname')
command.append(self.groupname)
if self.cgi_bin:
command.append('--cgi-bin')
command.append(self.cgi_bin)
if self.config_root:
command.append('--config-root')
command.append(self.config_root)
self.announce(
'Running command: %s' % str(command),
level=distutils.log.INFO)
subprocess.check_call(command)
评论列表
文章目录