lib/commands/checkup.rb in nutella_framework-0.4.13 vs lib/commands/checkup.rb in nutella_framework-0.4.16
- old
+ new
@@ -39,10 +39,10 @@
out1 = system "git clone -b #{broker_version} --depth 1 git://github.com/mcollina/mosca.git #{Nutella.config['broker_dir']} > /dev/null 2>&1"
Dir.chdir(Nutella.config['broker_dir'])
out2 = system 'npm install > /dev/null 2>&1'
# Add startup script and make it executable
- File.open('startup', 'w') { |file| file.write("#!/bin/sh\n\nBASEDIR=$(dirname $0)\n$BASEDIR/bin/mosca --http-port 1884 > /dev/null 2>&1 &\necho $! > $BASEDIR/bin/.pid\n") }
+ File.open('startup', 'w') { |file| file.write("#!/bin/sh\n\nBASEDIR=$(dirname $0)\n$BASEDIR/bin/mosca --disable-stats --http-port 1884 > /dev/null 2>&1 &\necho $! > $BASEDIR/bin/.pid\n") }
File.chmod( 0755, 'startup' )
# Write configuration into config.json
Nutella.config['broker'] = 'localhost'
out1 && out2