DEV: resolve symlinks in docker dev

symlinks where not fully resolved leading to docker not booting when you
had symlinks in the plugins directory pointing at relative paths.
This commit is contained in:
Sam Saffron 2020-01-13 10:33:34 +11:00
parent 1a31a403ce
commit d8412f409a
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ for symlink in $(find $PLUGINS_DIR -type l); do
# This deliberately does not use the `-f` option to canonicalize the value # This deliberately does not use the `-f` option to canonicalize the value
# because 1) the BSD `readlink` does not support the option, and 2) a # because 1) the BSD `readlink` does not support the option, and 2) a
# relative link would not work inside the container anyway. # relative link would not work inside the container anyway.
symlink_value=$(readlink $symlink) symlink_value=$(readlink -f $symlink)
mount_plugin_symlinks+=" -v ${symlink_value}:${symlink_value}:delegated" mount_plugin_symlinks+=" -v ${symlink_value}:${symlink_value}:delegated"
done done