From ebc59e3587dbbbb6e203363fe4ca3a0b702f815d Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Thu, 20 May 2021 09:33:33 +0000 Subject: [PATCH 1/2] Add bash script for warranty. #567 --- utils/warranty_motiv_dev.sh | 2 ++ utils/warranty_motiv_prod.sh | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 utils/warranty_motiv_dev.sh create mode 100755 utils/warranty_motiv_prod.sh diff --git a/utils/warranty_motiv_dev.sh b/utils/warranty_motiv_dev.sh new file mode 100755 index 00000000..48c7daf8 --- /dev/null +++ b/utils/warranty_motiv_dev.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/bin/php /usr/share/nginx/html/resqapi/utils/get_warranty_serial/get_serials.php && 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 diff --git a/utils/warranty_motiv_prod.sh b/utils/warranty_motiv_prod.sh new file mode 100755 index 00000000..7cab5d0d --- /dev/null +++ b/utils/warranty_motiv_prod.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/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 From 04bbb8a069618c87fb2f66d0defdf129cdef6a15 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Thu, 20 May 2021 09:35:02 +0000 Subject: [PATCH 2/2] Fix path for dev script. #567 --- utils/warranty_motiv_dev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/warranty_motiv_dev.sh b/utils/warranty_motiv_dev.sh index 48c7daf8..d561073c 100755 --- a/utils/warranty_motiv_dev.sh +++ b/utils/warranty_motiv_dev.sh @@ -1,2 +1,2 @@ #!/bin/bash -/usr/bin/php /usr/share/nginx/html/resqapi/utils/get_warranty_serial/get_serials.php && 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/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