Module: kamailio
Branch: master
Commit: e727ddcef5113c5235d8d2dde9da86a8c2d2b4bb
URL:
https://github.com/kamailio/kamailio/commit/e727ddcef5113c5235d8d2dde9da86a…
Author: Andreas Granig <agranig(a)sipwise.com>
Committer: Andreas Granig <agranig(a)sipwise.com>
Date: 2018-02-14T15:38:03+01:00
db_redis: Install redis schema along with module
---
Modified: src/modules/db_redis/Makefile
Modified: utils/kamctl/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/e727ddcef5113c5235d8d2dde9da86a…
Patch:
https://github.com/kamailio/kamailio/commit/e727ddcef5113c5235d8d2dde9da86a…
---
diff --git a/src/modules/db_redis/Makefile b/src/modules/db_redis/Makefile
index 58ecd04d36..c4aa0d0731 100644
--- a/src/modules/db_redis/Makefile
+++ b/src/modules/db_redis/Makefile
@@ -35,3 +35,8 @@ SERLIBPATH=../../lib
SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1
include ../../Makefile.modules
+
+install-redis-scripts: $(bin_prefix)/$(bin_dir)
+ REDISON=yes $(MAKE) -C ../../../utils/kamctl/ install-modules
+
+install-scripts: install-redis-scripts
diff --git a/utils/kamctl/Makefile b/utils/kamctl/Makefile
index 3804d70dc7..9736cf2895 100644
--- a/utils/kamctl/Makefile
+++ b/utils/kamctl/Makefile
@@ -264,7 +264,18 @@ install-modules: $(bin_prefix)/$(bin_dir)
fi ;\
done ; \
fi
-
+ # install Redis stuff
+ if [ "$(REDISON)" = "yes" ]; then \
+ mkdir -p $(data_prefix)/$(data_dir)/db_redis/kamailio ; \
+ for FILE in $(wildcard db_redis/kamailio/*) ; do \
+ if [ -f $$FILE ] ; then \
+ $(INSTALL_TOUCH) $$FILE \
+ $(data_prefix)/$(data_dir)/db_redis/kamailio/`basename "$$FILE"` ; \
+ $(INSTALL_CFG) $$FILE \
+ $(data_prefix)/$(data_dir)/db_redis/kamailio/`basename "$$FILE"` ; \
+ fi ;\
+ done ; \
+ fi
$(cfg_prefix)/$(cfg_dir):
mkdir -p $(cfg_prefix)/$(cfg_dir)