[From nobody Thu Jul 23 11:09:09 2026
Received: (at submit) by bugs.debian.org; 10 Nov 2020 20:32:20 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-11.1 required=4.0 tests=BAYES_00, FOURLA, HAS_PACKAGE,
 RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP
 autolearn=ham autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 150; neutral, 118; spammy,
 0. spammytokens: hammytokens:0.000-+--sk:taint_o,
 0.000-+--sk:TAINT_O, 
 0.000-+--sk:taint_u, 0.000-+--sk:TAINT_U, 0.000-+--gitlab
Return-path: &lt;leo@alaxarxa.net&gt;
Received: from mout.kundenserver.de ([212.227.17.10]:52421)
 by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from &lt;leo@alaxarxa.net&gt;) id 1kcaJP-0006G3-SN
 for submit@bugs.debian.org; Tue, 10 Nov 2020 20:32:20 +0000
Received: from bagul.alaxarxa.net ([37.14.73.180]) by mrelayeu.kundenserver.de
 (mreue106 [212.227.15.158]) with ESMTPSA (Nemesis) id
 1MK3iK-1ksT4X3zd0-00LUtK for &lt;submit@bugs.debian.org&gt;; Tue, 10 Nov 2020
 21:19:32 +0100
Received: from [192.168.1.8] by bagul.alaxarxa.net with esmtp (Exim 4.92)
 (envelope-from &lt;leo@alaxarxa.net&gt;) id 1kca70-0005eS-Vn
 for submit@bugs.debian.org; Tue, 10 Nov 2020 21:19:31 +0100
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
From: Leopold Palomo-Avellaneda &lt;leo@alaxarxa.net&gt;
Subject: gitaly: Error in postinst script
Message-ID: &lt;01310272-464e-7e01-26f7-28cf94c6560e@alaxarxa.net&gt;
Date: Tue, 10 Nov 2020 21:19:30 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Firefox/78.0 Thunderbird/78.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K1:iyGgzJ/WCofpGdc7itsrAR1qpmvuyvXr8P6eovr8PKb+hsZkNTo
 fVijv/LupSnd+iNqfTCWEYnHBU9blBGbRGGlzwx7FE5XN+L9+4lE1X1ygjOKTRuc8IvxN/e
 mywI/7nWDQdb/KJ0tcfgwzYTd9n/ZrMi3WBR+jdUowQOMC4z7KepDIikyoW9Hy+GDrjJCaH
 5glBzk4+AFfzu3wcLLDvg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:KhLPQmsOQOg=:YAN2hX1qlSQRyt4C2BZkbo
 Z67wslFzaNztuAnl2wdILgmbPnWLhv+Q23/3lY3FqrANDiVDVMeRjoLzrXpHAWkwIcc0vLA5a
 91P4yq4C73RF19Q8pWJb29Tap5wNeFmELKW5Z4ouWA6fFRXtNKWzIiekJZARQeFvakF5eofNO
 7pBs7Umhv8czSebNCTVwYNfVlTcOhUfaC9mNgkv494m0b05fcWWy09qnNa00mRnMCTTDw/kAF
 3ra02e7EiVpqq3om4s37Vzxwc4R84lbE/sn8+wZFqsX1g7OFb3EBu8nTYc3HgHFOhsEu4hAcE
 MVt4R5hZVvpLRrstC1NCW4yaAUGed8gJc4xTcFW1VORnyOKfkstP2H2ZbMdWi+zePopFNOvbA
 TpBx3dAH9ADhvbO7GCn9GEYidkkpRft3HNFUc4mzLxDnV8wMIImrVaTg2PPI/
Delivered-To: submit@bugs.debian.org

Package: gitaly
Version: 13.3.9+dfsg-1+fto10+1
Severity: normal

Installing gitaly I have found that if it's an upgrade, or install, and
it's installed, there's and error because when the script is executed,
in the line 50:

# Check if storage path exist and create if required
  export $(grep '^\s*path\s*=' /etc/gitaly/config.toml | sed 's/ //g' |
sed 's/&quot;//g')
  if ! [ -d $path ] ; then runuser -u ${gitlab_user} -- sh -c 'mkdir
$path'; fi

The problem is the path in my case contains:
'/home/projects/gitlab/repositories'. Pay attention in the ' ', so the
if ![-d $path] check for a '/home/projects/gitlab/repositories' and of
course my path doesn't exists. It exists without ''. So, when you try to
create the path , I don't know why, the '' disappears and the error
occurs because the path exists.

Hope have been clear.


-- System Information:
Debian Release: 10.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-0.bpo.2-amd64 (SMP w/16 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8),
LANGUAGE=ca:en_US (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


-- 
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
]