From 9090cae68b770ca92f3cf82183de6f54681d47fb Mon Sep 17 00:00:00 2001 From: Tykayn Date: Thu, 21 Nov 2024 19:25:23 +0100 Subject: [PATCH] =?UTF-8?q?script=20de=20mise=20=C3=A0=20jour=20de=20jeu?= =?UTF-8?q?=20de=20donn=C3=A9es=20sur=20datagouv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_scripts/publish_to_datagouv.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 update_scripts/publish_to_datagouv.sh diff --git a/update_scripts/publish_to_datagouv.sh b/update_scripts/publish_to_datagouv.sh new file mode 100644 index 0000000..34c4217 --- /dev/null +++ b/update_scripts/publish_to_datagouv.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# hackerspaces : https://www.data.gouv.fr/fr/admin/dataset/671f6e8fa0f72ffb985b07b3/ +# nécessite la package python pip "httpie" +source $HOME/Nextcloud/ressources/workflow_nextcloud/secrets_vars.sh + +echo "mise à jour des hackerspaces" + +http -f POST $API/datasets/$DATASET_HACKERSPACE/resources/$RESOURCE_HACKERSPACE/upload/ X-Api-Key:$API_KEY file@$HACKERSPACE_FILEPATH +