Merge pull request #41291 from den-crane/patch-48

make /etc/default/clickhouse compatible between systemd and initV
This commit is contained in:
Mikhail f. Shiryaev 2022-09-14 12:26:27 +02:00 committed by GitHub
commit 636994fab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,9 +47,10 @@ CLICKHOUSE_PIDFILE="$CLICKHOUSE_PIDDIR/$PROGRAM.pid"
# Some systems lack "flock"
command -v flock >/dev/null && FLOCK=flock
# Override defaults from optional config file
# Override defaults from optional config file and export them automatically
set -a
test -f /etc/default/clickhouse && . /etc/default/clickhouse
set +a
die()
{