mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
Make clickhouse-server package providing clickhouse-keeper
This commit is contained in:
parent
be763ee437
commit
da6a4528f1
@ -31,10 +31,10 @@ contents:
|
|||||||
- src: root/etc/clickhouse-keeper/keeper_config.xml
|
- src: root/etc/clickhouse-keeper/keeper_config.xml
|
||||||
dst: /etc/clickhouse-keeper/keeper_config.xml
|
dst: /etc/clickhouse-keeper/keeper_config.xml
|
||||||
type: config|noreplace
|
type: config|noreplace
|
||||||
- src: root/usr/bin/clickhouse-keeper
|
|
||||||
dst: /usr/bin/clickhouse-keeper
|
|
||||||
- src: clickhouse-keeper.service
|
- src: clickhouse-keeper.service
|
||||||
dst: /lib/systemd/system/clickhouse-keeper.service
|
dst: /lib/systemd/system/clickhouse-keeper.service
|
||||||
|
- src: root/usr/bin/clickhouse-keeper
|
||||||
|
dst: /usr/bin/clickhouse-keeper
|
||||||
- src: clickhouse-keeper
|
- src: clickhouse-keeper
|
||||||
dst: /usr/bin/clickhouse-keeper-client
|
dst: /usr/bin/clickhouse-keeper-client
|
||||||
type: symlink
|
type: symlink
|
||||||
|
@ -13,6 +13,11 @@ CLICKHOUSE_BINDIR=${CLICKHOUSE_BINDIR:-/usr/bin}
|
|||||||
CLICKHOUSE_GENERIC_PROGRAM=${CLICKHOUSE_GENERIC_PROGRAM:-clickhouse}
|
CLICKHOUSE_GENERIC_PROGRAM=${CLICKHOUSE_GENERIC_PROGRAM:-clickhouse}
|
||||||
CLICKHOUSE_PIDDIR=/var/run/$PROGRAM
|
CLICKHOUSE_PIDDIR=/var/run/$PROGRAM
|
||||||
|
|
||||||
|
# Provide clickhouse-keeper
|
||||||
|
KEEPER_CONFDIR=${KEEPER_CONFDIR:-/etc/clickhouse-keeper}
|
||||||
|
KEEPER_DATADIR=${KEEPER_DATADIR:-/var/lib/clickhouse}
|
||||||
|
KEEPER_LOGDIR=${KEEPER_LOGDIR:-/var/log/clickhouse-keeper}
|
||||||
|
|
||||||
[ -f /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule
|
[ -f /usr/share/debconf/confmodule ] && . /usr/share/debconf/confmodule
|
||||||
[ -f /etc/default/clickhouse ] && . /etc/default/clickhouse
|
[ -f /etc/default/clickhouse ] && . /etc/default/clickhouse
|
||||||
|
|
||||||
@ -54,4 +59,20 @@ if [ "$1" = configure ] || [ -n "$not_deb_os" ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Setup clickhouse-keeper directories
|
||||||
|
chown -R "${CLICKHOUSE_USER}:${CLICKHOUSE_GROUP}" "${KEEPER_CONFDIR}"
|
||||||
|
chmod 0755 "${KEEPER_CONFDIR}"
|
||||||
|
|
||||||
|
if ! [ -d "${KEEPER_DATADIR}" ]; then
|
||||||
|
mkdir -p "${KEEPER_DATADIR}"
|
||||||
|
chown -R "${CLICKHOUSE_USER}:${CLICKHOUSE_GROUP}" "${KEEPER_DATADIR}"
|
||||||
|
chmod 0700 "${KEEPER_DATADIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [ -d "${KEEPER_LOGDIR}" ]; then
|
||||||
|
mkdir -p "${KEEPER_LOGDIR}"
|
||||||
|
chown -R "${CLICKHOUSE_USER}:${CLICKHOUSE_GROUP}" "${KEEPER_LOGDIR}"
|
||||||
|
chmod 0770 "${KEEPER_LOGDIR}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -22,12 +22,11 @@ deb:
|
|||||||
Source: clickhouse
|
Source: clickhouse
|
||||||
|
|
||||||
# Package specific content
|
# Package specific content
|
||||||
conflicts:
|
|
||||||
- clickhouse-keeper
|
|
||||||
replaces:
|
replaces:
|
||||||
- clickhouse-server-common
|
- clickhouse-server-common
|
||||||
- clickhouse-server-base
|
- clickhouse-server-base
|
||||||
provides:
|
provides:
|
||||||
|
- clickhouse-keeper
|
||||||
- clickhouse-server-common
|
- clickhouse-server-common
|
||||||
recommends:
|
recommends:
|
||||||
- libcap2-bin
|
- libcap2-bin
|
||||||
@ -53,16 +52,25 @@ contents:
|
|||||||
dst: /lib/systemd/system/clickhouse-server.service
|
dst: /lib/systemd/system/clickhouse-server.service
|
||||||
- src: root/usr/bin/clickhouse-copier
|
- src: root/usr/bin/clickhouse-copier
|
||||||
dst: /usr/bin/clickhouse-copier
|
dst: /usr/bin/clickhouse-copier
|
||||||
|
- src: root/usr/bin/clickhouse-report
|
||||||
|
dst: /usr/bin/clickhouse-report
|
||||||
|
- src: root/usr/bin/clickhouse-server
|
||||||
|
dst: /usr/bin/clickhouse-server
|
||||||
|
# clickhouse-keeper part
|
||||||
|
- src: root/etc/clickhouse-keeper/keeper_config.xml
|
||||||
|
dst: /etc/clickhouse-keeper/keeper_config.xml
|
||||||
|
type: config|noreplace
|
||||||
|
- src: clickhouse-keeper.service
|
||||||
|
dst: /lib/systemd/system/clickhouse-keeper.service
|
||||||
- src: clickhouse
|
- src: clickhouse
|
||||||
dst: /usr/bin/clickhouse-keeper
|
dst: /usr/bin/clickhouse-keeper
|
||||||
type: symlink
|
type: symlink
|
||||||
- src: clickhouse
|
- src: clickhouse
|
||||||
dst: /usr/bin/clickhouse-keeper-client
|
dst: /usr/bin/clickhouse-keeper-client
|
||||||
type: symlink
|
type: symlink
|
||||||
- src: root/usr/bin/clickhouse-report
|
- src: clickhouse
|
||||||
dst: /usr/bin/clickhouse-report
|
dst: /usr/bin/clickhouse-keeper-converter
|
||||||
- src: root/usr/bin/clickhouse-server
|
type: symlink
|
||||||
dst: /usr/bin/clickhouse-server
|
|
||||||
# docs
|
# docs
|
||||||
- src: ../AUTHORS
|
- src: ../AUTHORS
|
||||||
dst: /usr/share/doc/clickhouse-server/AUTHORS
|
dst: /usr/share/doc/clickhouse-server/AUTHORS
|
||||||
|
Loading…
Reference in New Issue
Block a user