https://bugs.koozali.org/show_bug.cgi?id=12256

--- Comment #2 from Jean-Philippe Pialasse <[email protected]> ---
1- we need to detect which version of FPBX is running

2- if fpbx 15 or higher set /update default backup using fwconsole


3 if fpbx 15 or higher do backup using the command


probably will need to replace all fwconsole link to a file like this
#!/bin/bash
/usr/bin/php74  --define sys_temp_dir=/var/spool/asterisk/tmp/ --define
allow_url_fopen=1  /var/lib/asterisk/bin/fwconsole $@



# whereis fwconsole
fwconsole: /usr/sbin/fwconsole /usr/local/sbin/fwconsole
# ll /usr/sbin/fwconsole /usr/local/sbin/fwconsole
lrwxrwxrwx 1 root root 31 10 jan  2019 /usr/local/sbin/fwconsole ->
/var/lib/asterisk/bin/fwconsole
lrwxrwxrwx 1 root root 31 10 jan  2019 /usr/sbin/fwconsole ->
/var/lib/asterisk/bin/fwconsole


also 
ver=$(xmllint --xpath 'string(/module/version)'
/opt/freepbx/admin/modules/core/module.xml 2>/dev/null|cut -d. -f1 )
to select how to backup in 

also update the checkinstall-backup script depending on version

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to