From 4f6534cd4dda9e98957fe6dd9af50babad1a2166 Mon Sep 17 00:00:00 2001 From: Nulo Date: Wed, 31 May 2023 10:57:24 -0300 Subject: [PATCH] big oof --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`); }