From 008e652e3a7294286d19b23e15b9d75ccb9ea021 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 11:56:51 +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(-) (limited to 'debian') 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