aboutsummaryrefslogtreecommitdiff
path: root/databases/clickhouse/files
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2018-07-29 17:49:12 +0000
committerKurt Jaeger <pi@FreeBSD.org>2018-07-29 17:49:12 +0000
commitd8f7233b752317a0cda05f7c9b37e88312a64f48 (patch)
treeacdca9b3b1537d03073cf805e831769153231892 /databases/clickhouse/files
parentc59f456e4bc4797eb352a80c92c314147306a1b0 (diff)
downloadports-d8f7233b752317a0cda05f7c9b37e88312a64f48.tar.gz
ports-d8f7233b752317a0cda05f7c9b37e88312a64f48.zip
databases/clickhouse: update 1.1.54381 to 18.1.0
PR: 230054 Submitted by: proler@gmail.com (maintainer) Relnotes: https://github.com/yandex/ClickHouse/blob/master/CHANGELOG.md
Notes
Notes: svn path=/head/; revision=475667
Diffstat (limited to 'databases/clickhouse/files')
-rw-r--r--databases/clickhouse/files/clickhouse.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/databases/clickhouse/files/clickhouse.in b/databases/clickhouse/files/clickhouse.in
index 79b5f0d8e0e1..e9037bdf9f09 100644
--- a/databases/clickhouse/files/clickhouse.in
+++ b/databases/clickhouse/files/clickhouse.in
@@ -39,6 +39,7 @@ load_rc_config ${name}
: ${clickhouse_rundir="/var/run/clickhouse"}
: ${clickhouse_user="clickhouse"}
: ${clickhouse_group="clickhouse"}
+: ${clickhouse_logdir="/var/log/clickhouse"}
: ${clickhouse_dbdir="/var/db/clickhouse"}
: ${clickhouse_flags=""}
: ${clickhouse_pidfile="${clickhouse_rundir}/clickhouse.pid"}
@@ -51,6 +52,10 @@ required_files=${clickhouse_config}
start_precmd=clickhouse_prestart
clickhouse_prestart () {
+ for _dir in ${clickhouse_rundir} ${clickhouse_logdir} ${clickhouse_dbdir}; do
+ install -d -o ${clickhouse_user} -g ${clickhouse_group} ${_dir}
+ done
+
%%LEGACY_LIMITS%% if checkyesno clickhouse_limits; then
%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${clickhouse_user}` 2>/dev/null
%%LEGACY_LIMITS%% else