This commit is contained in:
Cat /dev/Nulo 2023-05-31 10:57:24 -03:00
parent 7bbf52a757
commit 4f6534cd4d

View file

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