Hi!
I tested install FreePBX Distro 6.12.65-10, but I had problem with instalation. Script pbx_first_boot.sh contains a few errors.
The critical part of code is below.
- Variable ARCH is used before it is assigned. The same problem is with variable PBXVERS. Even this variable should be probably FREEPBXVERS.
- The curl connect to https server and it is not possible verify certificates. Probably the option “-k” is missing -> “curl -k -s -A…”
- echo ${MYBRAND} > … can’t rewrite output file, when script rerun.
Even I repair this scrip and install all components, asterisk crash:
The file ‘cel_general_additional.conf’ was listed as a #include but it does not exist.
Segmentation fault
Critical part of pbx_first_boot.sh
test for internet
log_info "checking deployment"
BRAND_RETURN=$(curl -s -m 30 -A “PBXact Firstboot PBXact-${PBXVERS} ${ARCH} ${INSTALLTYPE}” } https://push2.schmoozecom.com/deployment/brand)
MYBRAND=$(echo ${BRAND_RETURN} | python -c ‘import simplejson as json,sys;obj=json.loads(sys.stdin.read());print obj[“brand”]’)
if [[ -n ${MYBRAND} ]]
then
echo ${MYBRAND} > /etc/schmooze/pbx-version
fi