From 691eca4221ee3976d4428f26596f28618c22efad Mon Sep 17 00:00:00 2001 From: wqian Date: Wed, 18 Sep 2024 17:02:16 +0100 Subject: [PATCH] Remove ineffective flag "-L" for chgrp --- shared/templates/file_groupowner/bash.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/templates/file_groupowner/bash.template b/shared/templates/file_groupowner/bash.template index 7b53efeda4c..f4b9d577219 100644 --- a/shared/templates/file_groupowner/bash.template +++ b/shared/templates/file_groupowner/bash.template @@ -19,6 +19,6 @@ find {{{ path }}} {{{ FIND_RECURSE_ARGS }}} -type f ! -group {{{ GID_OR_NAME }}} find -H {{{ path }}} {{{ FIND_RECURSE_ARGS }}} -type d -exec chgrp -L {{{ GID_OR_NAME }}} {} \; {{%- endif %}} {{%- else %}} -chgrp -L {{{ GID_OR_NAME }}} {{{ path }}} +chgrp {{{ GID_OR_NAME }}} {{{ path }}} {{%- endif %}} {{%- endfor %}}