diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-06-29 14:29:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-06-29 14:29:27 +0000 |
commit | 9a12670325767c6b7ddcb2950a3538f2f8cce519 (patch) | |
tree | 16c5f455b306840f0206b8f0f10b322ac89a1c87 | |
parent | 1ef6dd7f0646e3e84f97d5c4a2047e9710853382 (diff) | |
download | acf-kamailio-9a12670325767c6b7ddcb2950a3538f2f8cce519.tar.bz2 acf-kamailio-9a12670325767c6b7ddcb2950a3538f2f8cce519.tar.xz |
Do not export the db-listdatabases action
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | kamailio-controller.lua | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -25,8 +25,10 @@ dist: $(tarball) install: mkdir -p "$(install_dir)" cp -a $(APP_DIST) "$(install_dir)" - for i in $$(ls -1 $(DESTDIR)/$(acflibdir)/db-*.lsp); do\ - ln -sf $$i $(install_dir)/$$(echo "$$(basename $$i)" | sed "s/db/$(APP_NAME)/");\ + for i in $$(ls -1 $(DESTDIR)/$(acflibdir)/db-*.lsp); do \ + if [ "$$(basename $$i)" != "db-listdatabases-html.lsp" ]; then \ + ln -sf $$i $(install_dir)/$$(echo "$$(basename $$i)" | sed "s/db/$(APP_NAME)/"); \ + fi \ done $(tarball): $(DISTFILES) diff --git a/kamailio-controller.lua b/kamailio-controller.lua index 985eb39..7f7073c 100644 --- a/kamailio-controller.lua +++ b/kamailio-controller.lua @@ -46,7 +46,9 @@ end -- Use acf-db to allow editing of the database dbcontrollerfunctions = require("dbcontrollerfunctions") for n,f in pairs(dbcontrollerfunctions) do - mymodule[n] = f + if n ~= "listdatabases" then + mymodule[n] = f + end end return mymodule |