debian-mirror-gitlab/debian/patches/0610-source-init-functions.patch

25 lines
942 B
Diff
Raw Normal View History

2016-02-02 19:47:30 +05:30
Description: fix lintian warning and init script error
Bug: https://gitlab.com/gitlab-org/gitlab-ce/issues/12954
2016-01-20 00:51:50 +05:30
2018-03-27 22:49:57 +05:30
--- a/lib/support/init.d/gitlab
+++ b/lib/support/init.d/gitlab
2020-05-24 23:50:06 +05:30
@@ -15,6 +15,9 @@
# chkconfig: - 85 14
### END INIT INFO
2015-12-15 14:59:01 +05:30
+### source init functions
+. /lib/init/vars.sh
+. /lib/lsb/init-functions
2020-05-24 23:50:06 +05:30
###
# DO NOT EDIT THIS FILE!
@@ -48,7 +51,7 @@
web_server_pid_path="$pid_path/$use_web_server.pid"
2016-02-02 19:39:43 +05:30
mail_room_enabled=false
mail_room_pid_path="$pid_path/mail_room.pid"
2016-04-02 18:29:19 +05:30
-gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse 2> /dev/null && pwd)
2016-02-02 19:39:43 +05:30
+gitlab_workhorse_dir=$app_root/../gitlab-workhorse
gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid"
gitlab_workhorse_options="-listenUmask 0 -listenNetwork unix -listenAddr $socket_path/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 -authSocket $rails_socket -documentRoot $app_root/public"
gitlab_workhorse_log="$app_root/log/gitlab-workhorse.log"