diff --git a/index.js b/index.js index 8156476..87dbf92 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ apk add --initdb --root /rootfs alpine-base async rcUpdate(runlevel, service) { const servicePath = `/etc/init.d/${service}`; try { - await stat(servicePath); + await stat(join(root, servicePath)); } catch (error) { throw new Error(`Can't stat service ${service}: ${error}`); }