docker-entrypoint: do not symlink if there is already one; force if there is not

This commit is contained in:
Vladislav Yarmak 2019-07-11 03:16:57 +03:00
parent 65b733f3f7
commit 94222a8824

View File

@ -6,8 +6,8 @@ cd /patched-lib && \
for f in * ; do
suffix="${f##*.so}"
name="$(basename "$f" "$suffix")"
ln -s "$f" "$name"
ln -s "$f" "$name.1"
[ -h "$name" ] || ln -sf "$f" "$name"
[ -h "$name" ] || ln -sf "$f" "$name.1"
done && \
ldconfig
[ "$OLDPWD" ] && cd -