Merge branch '568-fix-bash-script-for-warranty-loading' into 'master-fix'
Resolve "Fix bash script for warranty loading" See merge request jankstudio/resq!681
This commit is contained in:
commit
69fb2d77ee
3 changed files with 5 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ try {
|
|||
$res = $blob_client->getBlob('warranty', $filename);
|
||||
// print_r($res);
|
||||
|
||||
file_put_contents("/tmp/output.txt", $res->getContentStream());
|
||||
file_put_contents("/tmp/warranty_download_serial.txt", $res->getContentStream());
|
||||
} catch (Exception $e) {
|
||||
file_put_contents("/tmp/serial_download_error.txt", $filename . "\n" . $e->getMessage() . "\n" . "\n", FILE_APPEND);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/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/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
|
||||
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/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