From a10ad7e6cea8c7f54ea5dd6a9a51f56e10d630d0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:18:22 +0200 Subject: Updating check of existing .gitolite.rc to work with symlinks too (Closes: #843655). Signed-off-by: Daniel Baumann --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index e47266d..62187c5 100644 --- a/debian/postinst +++ b/debian/postinst @@ -88,7 +88,7 @@ if [ "x$version" = "x" ] || [ "$action" = "reconfigure" ]; then --group "$GITUSER" fi - if [ ! -r "$GITDIR/.gitolite.rc" ]; then + if [ ! -r "$GITDIR/.gitolite.rc" ] && [ ! -h "$GITDIR/.gitolite.rc" ]; then if [ ! -d "$GITDIR" ]; then mkdir -p "$GITDIR" chown "$GITUSER":"$GITUSER" "$GITDIR" -- cgit v1.2.3