From 314521cbcac7e3a2471957a704e0721c40280e6d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 25 Dec 2023 14:29:11 -0500 Subject: [PATCH] fix: scope the delete of symlinked plugins in debian post-install to the plugin folders Previously, we would try and traverse the entire dokku lib directory, causing extremely slow updates for installations with lots of data. This would also potentially cause issues for anyone using symlinks in their data directories. Instead, just remove symlinks in the plugin directories. --- debian/postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 1b755a173..f3bcee171 100755 --- a/debian/postinst +++ b/debian/postinst @@ -84,7 +84,8 @@ setup-plugins() { PLUGIN_PATH="${DOKKU_LIB_ROOT}/plugins" plugn enable "$plugin" fi done - find -L "${DOKKU_LIB_ROOT}" -type l -delete + find -L "${DOKKU_LIB_ROOT}/core-plugins" -type l -delete + find -L "${DOKKU_LIB_ROOT}/plugins" -type l -delete chown dokku:dokku -R "${DOKKU_LIB_ROOT}/plugins" "${DOKKU_LIB_ROOT}/core-plugins" echo "Install all core plugins"