Closed Stell0 closed 2 years ago
Test case:
su - asterisk -c "/opt/nethvoice-report/scripts/queue-miner.php && /opt/nethvoice-report/tasks/tasks cdr && /opt/nethvoice-report/tasks/tasks cost && /opt/nethvoice-report/tasks/tasks views && /opt/nethvoice-report/tasks/tasks queries"
/usr/bin/mysql asteriskcdrdb -e "ALTER TABLE data_call DROP COLUMN agents"
nethvoice-report-conf action checks if data_call table columns needs to be fixed and drop the table if the fix is needed (it will be created again the first night). But the action doesn't check if the table exists and at first install it does not. This prints some errors and make the action fail:
The package installation and the database aren't compromised by the errors
Steps to reproduce
Expected behavior
nethvoice-report-update should end with SUCCESS
Actual behavior
nethvoice-report-update FAILS
Components
nethvoice-report-1.0.5-1.ns7.x86_64