I updated FreePBX to run it unembedded from elastix. I am now having a problem with FOP2
[root@elastix fop2]# /usr/local/fop2/fop2_server --test
Flash Operator Panel 2 - Invalid license for this install (i). Demo Mode
/usr/local/fop2/autoconfig-buttons-freepbx.sh: line 15: [: too many arguments
Connection to manager OK!
[root@elastix fop2]#
looking into /usr/local/fop2/autoconfig-buttons-freepbx.sh I am finding that "-bash" is getting passed to a variable and resulting in an "if" statement betting 2 arguments.
Can anyone tell me why this is getting introduced?
[root@elastix fop2]# AMPDIR=``
[root@elastix fop2]# $AMPDIR
[root@elastix fop2]# AMPDIR=`cat /etc/amportal.conf | sed 's/ //g' | grep ^AMPWEBROOT | cut -d= -f2 | tail -n1`
[root@elastix fop2]# AMPDIR=$AMPDIR/admin/modules/framework/module.xml
[root@elastix fop2]#
[root@elastix fop2]# AMPVERSION=`cat $AMPDIR | grep version | sed -e 's/<[^>]*>//g' | cut -b 2,4`
[root@elastix fop2]#
[root@elastix fop2]# $AMPVERSION
-bash: 28: command not found
[root@elastix fop2]# $AMPDIR
-bash: /var/www/html/admin/modules/framework/module.xml: Permission denied
[root@elastix fop2]# AMPDIR=`cat /etc/amportal.conf | sed 's/ //g' | grep ^AMPWEBROOT | cut -d= -f2 | tail -n1`
[root@elastix fop2]# $AMPDIR
-bash: /var/www/html: is a directory
THANKS in advance,
Jason