Skip to content

Commit 18ec3c6

Browse files
committed
Fix path for default openrc files
1 parent 73fa194 commit 18ec3c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile.alpine

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ RUN set -eux \
2020
/etc/init.d/modules-load \
2121
/etc/init.d/modloop \
2222
&& case $VERSION_ID in \
23-
3.21*) \
24-
OPENRC_RUN="/usr/libexec/rc/sh/openrc-run.sh"; \
25-
INIT="/usr/libexec/rc/sh/init.sh"; \
23+
3.19* | 3.20*) \
24+
OPENRC_RUN="/lib/rc/sh/openrc-run.sh"; \
25+
INIT="/lib/rc/sh/init.sh"; \
2626
;; \
2727
*) \
28-
OPENRC_RUN="/lib/rc/sh/openrc-run.sh"; \
29-
INIT="/lib/rc/sh/init.sh"; \
28+
OPENRC_RUN="/usr/libexec/rc/sh/openrc-run.sh"; \
29+
INIT="/usr/libexec/rc/sh/init.sh"; \
3030
;; \
3131
esac \
3232
&& sed -i 's/cgroup_add_service /# cgroup_add_service /g' "$OPENRC_RUN" \

0 commit comments

Comments
 (0)