Skip to content

Commit 5491282

Browse files
author
Zhen
committed
Fix broken start-neo4j and stop-neo4j on linux machines
1 parent d1653e5 commit 5491282

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

gulpfile.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,21 @@ var runPowershell = function( cmd ) {
196196
child.stdin.end(); //end input
197197
}
198198

199+
// gulp.task('start-neo4j', ['download-neo4j'], shell.task([
200+
// 'chmod +x ' + neo4jHome + '/bin/neo4j',
201+
// neo4jHome + '/bin/neo4j start',
202+
// ]));
203+
199204
gulp.task('start-neo4j', ['download-neo4j'], function() {
200205
if(isWin) {
201206
runPowershell('Install-Neo4jServer -Neo4jServer ' + neo4jHome + ' -Name neo4j-js;' +
202207
'Start-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js');
203-
} else {
204-
shell.task([
205-
'chmod +x' + neo4jHome + 'bin/neo4j',
208+
}
209+
else {
210+
return gulp.src('').pipe(shell([
211+
'chmod +x ' + neo4jHome + '/bin/neo4j',
206212
neo4jHome + '/bin/neo4j start',
207-
]);
213+
]));
208214
}
209215
});
210216

@@ -213,8 +219,8 @@ gulp.task('stop-neo4j', function() {
213219
runPowershell('Stop-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js;' +
214220
'Uninstall-Neo4jServer -Neo4jServer ' + neo4jHome + ' -ServiceName neo4j-js');
215221
} else {
216-
shell.task([
222+
return gulp.src('').pipe(shell([
217223
neo4jHome + '/bin/neo4j stop',
218-
])
224+
]));
219225
}
220226
});

0 commit comments

Comments
 (0)