Commit 94222a88 authored by Vladislav Yarmak's avatar Vladislav Yarmak

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

parent 65b733f3
......@@ -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 -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment