Skip to content

Commit d747b93

Browse files
David Coutadeurdavidcoutadeur
authored andcommitted
fix entrypoint no more available (#180)
1 parent 77f628d commit d747b93

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packaging/docker/install

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,19 @@ for p in ${BIN_PATHS}; do \
3737
BIN_EXPR="${BIN_EXPR:+${BIN_EXPR} -or }-path \"$p/*\""
3838
done
3939

40-
eval "find -type f \( $BIN_EXPR \) -exec install -p -m 755 -D {} /rootfs/var/www/{} \;"
40+
if [ ! -z "${BIN_EXPR}" ]; then
41+
eval "find -type f \( $BIN_EXPR \) -exec install -p -m 755 -D {} /rootfs/var/www/{} \;"
4142

42-
eval "find -type f \( $INSTALL_EXPR \) \
43+
eval "find -type f \( $INSTALL_EXPR \) \
4344
-not \( $EXCLUDE_EXPR \) \
4445
-not \( $BIN_EXPR \) \
4546
-exec install -p -m 644 -D {} /rootfs/var/www/{} \;"
47+
else
48+
49+
eval "find -type f \( $INSTALL_EXPR \) \
50+
-not \( $EXCLUDE_EXPR \) \
51+
-exec install -p -m 644 -D {} /rootfs/var/www/{} \;"
52+
fi
4653

4754
install -m 755 packaging/docker/entrypoint.sh /rootfs/
4855

0 commit comments

Comments
 (0)