1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ctdb-build: Create database directories during installation

Create and package.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-05-14 15:41:35 +10:00 committed by Amitay Isaacs
parent c83dad5b12
commit 31747da5ff
2 changed files with 4 additions and 0 deletions

View File

@ -215,6 +215,7 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man7/ctdb-statistics.7.gz
%{_mandir}/man7/ctdb-tunables.7.gz
%attr(0700,root,root) %dir %{_localstatedir}/lib/ctdb
%attr(0700,root,root) %dir %{_localstatedir}/lib/ctdb/*
%attr(0700,root,root) %dir %{_localstatedir}/run/ctdb

View File

@ -752,6 +752,9 @@ def build(bld):
bld.install_dir(bld.env.CTDB_RUNDIR)
bld.install_dir(bld.env.CTDB_VARDIR)
for d in ['volatile', 'persistent', 'state']:
bld.install_dir(os.path.join(bld.env.CTDB_VARDIR, d))
# Unit tests
ctdb_unit_tests = [
'db_hash_test',