server/serverctl.py
branchstable
changeset 7114 d80c8c30aba7
parent 7112 bb27cc300040
child 7121 c2badb6de3fe
equal deleted inserted replaced
7113:2572aa6dd7b4 7114:d80c8c30aba7
   183         config.write_bootstrap_cubes_file(cubes)
   183         config.write_bootstrap_cubes_file(cubes)
   184 
   184 
   185     def postcreate(self):
   185     def postcreate(self):
   186         if ASK.confirm('Run db-create to create the system database ?'):
   186         if ASK.confirm('Run db-create to create the system database ?'):
   187             verbosity = (self.config.mode == 'installed') and 'y' or 'n'
   187             verbosity = (self.config.mode == 'installed') and 'y' or 'n'
   188             CWCTL.run(['db-create', self.config.appid, '--verbose=%s' % verbosity])
   188             CWCTL.run(['db-create', self.config.appid])
   189         else:
   189         else:
   190             print ('-> nevermind, you can do it later with '
   190             print ('-> nevermind, you can do it later with '
   191                    '"cubicweb-ctl db-create %s".' % self.config.appid)
   191                    '"cubicweb-ctl db-create %s".' % self.config.appid)
   192 
   192 
   193 ERROR = nullobject()
   193 ERROR = nullobject()