From 21d25a36c7b8284fc0b363864d1aa0c964e5da96 Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Mon, 14 Aug 2023 17:46:57 +0400 Subject: [PATCH] fix: erroneous use of `+` before service name (#26) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5edebfa..395fbb4 100644 --- a/index.js +++ b/index.js @@ -272,7 +272,7 @@ function add(name, options, cb) { options && options.dependencies ? options.dependencies.join(' ') : ''; const initPath = join('/etc/init.d/', name); - const systemPath = join('/usr/lib/systemd/system/', + name + '.service'); + const systemPath = join('/usr/lib/systemd/system/', name + '.service'); const ctlOptions = { mode: 493 // rwxr-xr-x };