17 lines
279 B
Bash
17 lines
279 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||
|
|
||
|
cd ${SCRIPTPATH}
|
||
|
mkdir ./public
|
||
|
cd ./public
|
||
|
wget https://donnees.roulez-eco.fr/opendata/jour
|
||
|
unzip jour
|
||
|
mv PrixCarburants_quotidien*.xml gas-stations.xml
|
||
|
rm jour
|
||
|
|
||
|
cd ../
|
||
|
|
||
|
node importGasStations.js
|
||
|
|