147 |
fi |
fi |
148 |
-ln -sf $php /usr/sbin/php |
-ln -sf $php /usr/sbin/php |
149 |
- |
- |
150 |
+forcephp=$(/sbin/e-smith/db configuration getprop freepbx PHPVersion || echo $php ) |
+forcephp=$(/sbin/e-smith/db configuration getprop freepbx PHPVersion 2>/dev/null || echo $php ) |
151 |
+php=$forcephp |
+php=$forcephp |
152 |
+ln -sf /usr/bin/php$php /usr/sbin/php |
+ln -sf /usr/bin/php$php /usr/sbin/php |
153 |
+ln -sf /usr/bin/php$php /usr/local/sbin/php |
+ln -sf /usr/bin/php$php /usr/local/sbin/php |
257 |
- php="/usr/bin/php56" |
- php="/usr/bin/php56" |
258 |
+ php="56" |
+ php="56" |
259 |
fi |
fi |
260 |
+forcephp=$(/sbin/e-smith/db configuration getprop freepbx PHPVersion || echo $php ) |
+forcephp=$(/sbin/e-smith/db configuration getprop freepbx PHPVersion 2>/dev/null || echo $php ) |
261 |
+php=$forcephp |
+php=$forcephp |
262 |
|
|
263 |
-$php --define sys_temp_dir=/var/spool/asterisk/tmp/ --define allow_url_fopen=1 /var/lib/asterisk/bin/fwconsole $@ |
-$php --define sys_temp_dir=/var/spool/asterisk/tmp/ --define allow_url_fopen=1 /var/lib/asterisk/bin/fwconsole $@ |