Module: kamailio
Branch: master
Commit: 922c4c0dd1bc65c9fda6ccad467080132109e815
URL:
https://github.com/kamailio/kamailio/commit/922c4c0dd1bc65c9fda6ccad4670801…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-09T09:21:56+02:00
srdb1/schema: proper path in Makefile to generate mongo script for version table content
---
Modified: lib/srdb1/schema/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/922c4c0dd1bc65c9fda6ccad4670801…
Patch:
https://github.com/kamailio/kamailio/commit/922c4c0dd1bc65c9fda6ccad4670801…
---
diff --git a/lib/srdb1/schema/Makefile b/lib/srdb1/schema/Makefile
index 9eac430..438d253 100644
--- a/lib/srdb1/schema/Makefile
+++ b/lib/srdb1/schema/Makefile
@@ -209,16 +209,16 @@ mongodb:
done
@# small hack to create the version table entries, this is here easier as with XSL
@echo "use kamailio;" \
- > "$(SCHEME)/dbtext/kamailio/version-create.mongo" ;
+ > "$(SCHEME)/mongodb/kamailio/version-create.mongo" ;
@echo "db.createCollection(\"version\");" \
- >> "$(SCHEME)/dbtext/kamailio/version-create.mongo" ;
+ >> "$(SCHEME)/mongodb/kamailio/version-create.mongo" ;
@for FILE in $(sort $(wildcard $(SCHEME)/mongodb/kamailio/*.json)) ; do \
if [ -f "$$FILE" ]; then \
if [ "$$FILE" != "$(SCHEME)/mongodb/kamailio/version.json" ];
then \
VN=`grep '"version":' "$$FILE" | grep -o -E
'[0-9]+'` ; \
FN=`basename $$FILE .json` ;\
echo "db.getCollection(\"version\").insert({ table_name:
\"$$FN\", table_version: NumberInt($$VN) });" \
- >> "$(SCHEME)/dbtext/kamailio/version-create.mongo" ; \
+ >> "$(SCHEME)/mongodb/kamailio/version-create.mongo" ; \
fi ; \
fi ; \
done ; \