Skip to content

Commit

Permalink
fix: respect PATH env variable for runitdir in alpine #152 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
q0rban authored Dec 11, 2024
1 parent 7b8b80a commit b1915a9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/runit-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

sv_stop() {
for s in /etc/service/*; do
"$RUNITDIR"/sv stop "$s"
"$RUNITDIR"sv stop "$s"
done
}

Expand All @@ -12,5 +12,5 @@ trap "" SIGCHLD

trap "sv_stop; exit" SIGTERM

SVWAIT=60 "$RUNITDIR"/runsvdir -P /etc/service &
SVWAIT=60 "$RUNITDIR"runsvdir -P /etc/service &
wait
2 changes: 1 addition & 1 deletion templates/Dockerfile.apk.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN apk add --no-cache bash git openssh-client runit jq

STOPSIGNAL SIGTERM

ENV RUNITDIR=/sbin
ENV RUNITDIR=

COPY runit-init.sh /runit-init.sh

Expand Down
2 changes: 1 addition & 1 deletion templates/Dockerfile.apt.template
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RUN apt-get clean && \

STOPSIGNAL SIGTERM

ENV RUNITDIR=/usr/bin
ENV RUNITDIR=/usr/bin/

COPY runit-init.sh /runit-init.sh

Expand Down
2 changes: 1 addition & 1 deletion templates/Dockerfile.yum.template
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN yum clean all -y && \

STOPSIGNAL SIGTERM

ENV RUNITDIR=/usr/local/bin
ENV RUNITDIR=/usr/local/bin/

COPY runit-init.sh /runit-init.sh

Expand Down

0 comments on commit b1915a9

Please sign in to comment.