aggiunto script inserisci_ricicla
This commit is contained in:
parent
46f715dc61
commit
1f17f33ca3
1 changed files with 3 additions and 4 deletions
|
@ -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
|
Loading…
Reference in a new issue