[FIX] Исправлена команда перезапуска.

This commit is contained in:
Zaxar163 2019-01-16 11:52:47 +03:00 committed by GitHub
parent 6db5d818b0
commit b3c3ccea90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -650,8 +650,7 @@ public void syncUpdatesDir(Collection<String> dirs) throws IOException {
public void restart() {
ProcessBuilder builder = new ProcessBuilder();
List<String> args = new ArrayList<>();
if (config.startScript != null) args.add(config.startScript);
if (config.startScript != null) builder.command(Collections.singletonList(config.startScript));
else throw new IllegalArgumentException("Please create start script and link it as startScript in config.");
builder.directory(this.dir.toFile());
builder.inheritIO();