summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-31 14:41:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-31 14:41:07 +0000
commite1cb87e24b45929bde2dab0e059c55885aac6b4a (patch)
tree817e006341b074a8fecf7ada3a9b91a7c62d6402
parentUpdating vcs fields. (diff)
downloadgitolite3-e1cb87e24b45929bde2dab0e059c55885aac6b4a.tar.xz
gitolite3-e1cb87e24b45929bde2dab0e059c55885aac6b4a.zip
Updating check of existing .gitolite.rc to work with symlinks too (Closes: #843655).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/postinst2
1 files changed, 1 insertions, 1 deletions
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"