pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / servers / roundcube / 0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch
blob27ebd59a48d9f381a8c3dfabde7e47b9c218364e
1 From c1832eabb99cec47f1714f696275285e1e28da34 Mon Sep 17 00:00:00 2001
2 From: Maximilian Bosch <maximilian@mbosch.me>
3 Date: Tue, 2 Apr 2019 16:20:50 +0200
4 Subject: [PATCH] Don't resolve symlinks when trying to find INSTALL_PATH
6 Nix specific patch. This behavior breaks roundcube setups where plugins
7 are in a store path with symlinks to the actual source.
8 ---
9 bin/update.sh | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/bin/update.sh b/bin/update.sh
13 index 08e3bb5..b2ad498 100755
14 --- a/bin/update.sh
15 +++ b/bin/update.sh
16 @@ -19,7 +19,7 @@
17 +-----------------------------------------------------------------------+
20 -define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
21 +define('INSTALL_PATH', dirname(dirname($argv[0])).'/');
23 require_once INSTALL_PATH . 'program/include/clisetup.php';
25 --
26 2.19.2