The kamctl tool seems to require bash, while trying to use /bin/sh, which can point to dash or other shell interpreters.
For example, the output of kamdbctl create:
MySQL password for root:
-e \E[37;33mINFO: creating database kamailio_simple_db ...
-e \E[37;33mINFO: granting privileges to database kamailio_simple_db ...
-e \E[37;33mINFO: creating standard tables into kamailio_simple_db ...
-e \E[37;33mINFO: Core Kamailio tables succesfully created.
Install presence related tables? (y/n): n
/usr/sbin/kamdbctl: 216: /usr/sbin/kamdbctl: Bad substitution
It seems that the issue is expanding the variable when getting the answer for y/n question:
Such expression seems to be specific for bash:
Run kamctl with /bin/sh pointing to bash.
Decide what to do to have an acceptable solution: enforce bash, remove bashisms`...
Or maybe focus to make kamcli a (full) replacement for kamctl/kamdbctl and get rid of those old-style shell/bash scripts:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.![]()