From 1f17f33ca32fdc224d02022b58fa5f3ccabba073 Mon Sep 17 00:00:00 2001 From: scossa Date: Sat, 2 Nov 2024 02:49:05 +0100 Subject: [PATCH] aggiunto script inserisci_ricicla --- script/inserisci_ricicla.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/script/inserisci_ricicla.sh b/script/inserisci_ricicla.sh index bc1ee5c..0d3497c 100755 --- a/script/inserisci_ricicla.sh +++ b/script/inserisci_ricicla.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -x +#set -x # Prendi credenziali db e tabella DB_USER=$(jq -r '.db.user' ../server/config/default.json) DB_PASS=$(jq -r '.db.password' ../server/config/default.json) @@ -20,7 +20,7 @@ for i in "${coordinates[@]}"; do # Genera dati ricicla NAME='Ricicla' DESCRIPTION='Alimenti quasi scaduti vicino ai cassoneti dei supermercati https://nel.computer/lefanze/book/153' - FILENAME='/var/www/html/leaflet/ruscomap/server/public/uploads/riciclaimg' + FILENAME='riciclaimg' COORDINATE="$i" TS='2016-01-10 21:42:42' @@ -29,5 +29,4 @@ for i in "${coordinates[@]}"; do # Esegue inserimento mysql -u "$DB_USER" -p"$DB_PASS" -D "$DB_NAME" -e "$SQL_COMMAND" -done - +done \ No newline at end of file