Skip to content

Commit 39c6dd5

Browse files
committed
Duplicate gitaly init variables in 'default' file
This is needed because these variables depend (directly or indirectly) on the 'app_root' variable which can be changed in the default file. If app_root has a non-standard value, the value of e.g. gitaly_dir generated in the init script becomes invalid.
1 parent 827fd03 commit 39c6dd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/support/init.d/gitlab.default.example

+2
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ shell_path="/bin/bash"
8787

8888
# This variable controls whether the init script starts/stops Gitaly
8989
gitaly_enabled=false
90+
gitaly_dir=$(cd $app_root/../gitaly 2> /dev/null && pwd)
91+
gitaly_pid_path="$pid_path/gitaly.pid"
9092
gitaly_log="$app_root/log/gitaly.log"

0 commit comments

Comments
 (0)