db_sqlite: fix path in Makefile and utility script
authorHenning Westerholt <henning.westerholt@1und1.de>
Mon, 20 Jun 2011 11:44:26 +0000 (13:44 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Mon, 20 Jun 2011 11:44:26 +0000 (13:44 +0200)
utils/kamctl/Makefile
utils/kamctl/kamdbctl.sqlite

index 8b0f790..4a3a08a 100644 (file)
@@ -258,13 +258,13 @@ install-modules: $(bin_prefix)/$(bin_dir)
                        $(INSTALL_TOUCH) $(modules_prefix)/$(lib_dir)/kamctl/kamdbctl.sqlite ; \
                        $(INSTALL_CFG) /tmp/kamdbctl.sqlite $(modules_prefix)/$(lib_dir)/kamctl/ ; \
                        rm -fr /tmp/kamdbctl.sqlite ; \
-                       mkdir -p $(data_prefix)/$(data_dir)/sqlite ; \
-                       for FILE in $(wildcard sqlite/*) ; do \
+                       mkdir -p $(data_prefix)/$(data_dir)/db_sqlite ; \
+                       for FILE in $(wildcard db_sqlite/*) ; do \
                                if [ -f $$FILE ] ; then \
                                $(INSTALL_TOUCH) $$FILE \
-                                       $(data_prefix)/$(data_dir)/sqlite/`basename "$$FILE"` ; \
+                                       $(data_prefix)/$(data_dir)/db_sqlite/`basename "$$FILE"` ; \
                                $(INSTALL_CFG) $$FILE \
-                                       $(data_prefix)/$(data_dir)/sqlite/`basename "$$FILE"` ; \
+                                       $(data_prefix)/$(data_dir)/db_sqlite/`basename "$$FILE"` ; \
                                fi ;\
                        done ; \
                fi
index ecb51aa..3478b26 100644 (file)
@@ -5,10 +5,10 @@
 
 # path to the database schemas
 DATA_DIR="/usr/local/share/kamailio"
-if [ -d "$DATA_DIR/sqlite" ] ; then
-       DB_SCHEMA="$DATA_DIR/sqlite"
+if [ -d "$DATA_DIR/db_sqlite" ] ; then
+       DB_SCHEMA="$DATA_DIR/db_sqlite"
 else
-       DB_SCHEMA="./sqlite"
+       DB_SCHEMA="./db_sqlite"
 fi
 
 #################################################################