Commit 05d2b29b authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos-cli] Don't force auto invoke slapos-start

parent 39b6d46a
...@@ -343,14 +343,5 @@ def do_register(conf): ...@@ -343,14 +343,5 @@ def do_register(conf):
slapconfig(conf) slapconfig(conf)
conf.logger.info('Node has successfully been configured as %s.', COMP) conf.logger.info('Node has successfully been configured as %s.', COMP)
# XXX hardcoded value, relying on package installation conf.logger.info('Now please invoke /usr/sbin/slapos-start on your site.')
# We shall fix that later
conf.logger.info('Running starting script')
if os.path.isfile("/usr/sbin/slapos-start"):
try:
subprocess.check_call("/usr/sbin/slapos-start")
except subprocess.CalledProcessError:
conf.logger.error('Error while trying to run /usr/sbin/slapos-start')
else:
conf.logger.warning('Missing file /usr/sbin/slapos-start')
return 0 return 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment