Fix issues found during testing. Change filename of output file. #568
This commit is contained in:
parent
41e1cc9bf7
commit
2a0a37b9cf
3 changed files with 5 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ try {
|
||||||
$res = $blob_client->getBlob('warranty', $filename);
|
$res = $blob_client->getBlob('warranty', $filename);
|
||||||
// print_r($res);
|
// print_r($res);
|
||||||
|
|
||||||
file_put_contents("/tmp/output.txt", $res->getContentStream());
|
file_put_contents("/tmp/warranty_download_serial.txt", $res->getContentStream());
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
file_put_contents("/tmp/serial_download_error.txt", $filename . "\n" . $e->getMessage() . "\n" . "\n", FILE_APPEND);
|
file_put_contents("/tmp/serial_download_error.txt", $filename . "\n" . $e->getMessage() . "\n" . "\n", FILE_APPEND);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
touch /tmp/warranty_download_serial.txt
|
||||||
/usr/bin/php /usr/share/nginx/html/resqapi/utils/get_warranty_serial/get_serials.php
|
/usr/bin/php /usr/share/nginx/html/resqapi/utils/get_warranty_serial/get_serials.php
|
||||||
/usr/bin/php /usr/share/nginx/html/resqapi/utils/load_warranty_serial/load_serials.php /tmp/output.txt "mysql:host=localhost;dbname=resq;charset=UTF8" resq Motolite456
|
/usr/bin/php /usr/share/nginx/html/resqapi/utils/load_warranty_serial/load_serials.php /tmp/warranty_download_serial.txt "mysql:host=localhost;dbname=resq;charset=UTF8" resq Motolite456
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
touch /tmp/warranty_download_serial.txt
|
||||||
/usr/bin/php /var/www/resq/utils/get_warranty_serial/get_serials.php
|
/usr/bin/php /var/www/resq/utils/get_warranty_serial/get_serials.php
|
||||||
/usr/bin/php /var/www/resq/utils/load_warranty_serial/load_serials.php /tmp/output.txt "mysql:host=localhost;dbname=resq;charset=UTF8" resq Motolite456
|
/usr/bin/php /var/www/resq/utils/load_warranty_serial/load_serials.php /tmp/warranty_download_serial.txt "mysql:host=172.18.203.191:3306;dbname=resq;charset=UTF8" resq Motolite456
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue