summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:18:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:18:22 +0000
commita10ad7e6cea8c7f54ea5dd6a9a51f56e10d630d0 (patch)
tree817e006341b074a8fecf7ada3a9b91a7c62d6402
parentUpdating vcs fields. (diff)
downloadgitolite3-a10ad7e6cea8c7f54ea5dd6a9a51f56e10d630d0.tar.xz
gitolite3-a10ad7e6cea8c7f54ea5dd6a9a51f56e10d630d0.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"