From f6b43a9ce428430bd59f470f9bcc5f7f4c1de49e Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 24 Aug 2023 14:13:25 +0200 Subject: [PATCH] OMG CA MARCHE ? --- Flask/start.sh | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/Flask/start.sh b/Flask/start.sh index a3318ad..a331e67 100644 --- a/Flask/start.sh +++ b/Flask/start.sh @@ -1,33 +1,6 @@ service grafana-server start service nginx start -sleep 5 -echo "waited 5 sec" -curl -X "POST" "http://192.168.1.32:5555/grafana/api/datasources" \ - -H "Content-Type: application/json" \ - --user admin:admin \ - --data-raw $'{"id":1,"uid":"bed26262-6b98-4dfc-a95d-f8bd39b5d09c","orgId":1,"name":"SQLite","type":"frser-sqlite-datasource","typeName":"SQLite","typeLogoUrl":"public/plugins/frser-sqlite-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":true,"jsonData":{"attachLimit":0,"path":"/app/MsRewards-Reborn/MsRewards.db","pathPefix":"file:"},"readOnly":false}' - -sleep 5 -echo "waited 5 sec" -curl -X "POST" "http://192.168.1.32:5555/grafana/api/datasources" \ - -H "Content-Type: application/json" \ - --user admin:admin \ - --data-raw $'{"id":1,"uid":"bed26262-6b98-4dfc-a95d-f8bd39b5d09c","orgId":1,"name":"SQLite","type":"frser-sqlite-datasource","typeName":"SQLite","typeLogoUrl":"public/plugins/frser-sqlite-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":true,"jsonData":{"attachLimit":0,"path":"/app/MsRewards-Reborn/MsRewards.db","pathPefix":"file:"},"readOnly":false}' - -sleep 5 -echo "waited 5 sec" -curl -X "POST" "http://192.168.1.32:5555/grafana/api/datasources" \ - -H "Content-Type: application/json" \ - --user admin:admin \ - --data-raw $'{"id":1,"uid":"bed26262-6b98-4dfc-a95d-f8bd39b5d09c","orgId":1,"name":"SQLite","type":"frser-sqlite-datasource","typeName":"SQLite","typeLogoUrl":"public/plugins/frser-sqlite-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":true,"jsonData":{"attachLimit":0,"path":"/app/MsRewards-Reborn/MsRewards.db","pathPefix":"file:"},"readOnly":false}' -sleep 5 -echo "waited 5 sec" -curl -X "POST" "http://192.168.1.32:5555/grafana/api/datasources" \ - -H "Content-Type: application/json" \ - --user admin:admin \ - --data-raw $'{"id":1,"uid":"bed26262-6b98-4dfc-a95d-f8bd39b5d09c","orgId":1,"name":"SQLite","type":"frser-sqlite-datasource","typeName":"SQLite","typeLogoUrl":"public/plugins/frser-sqlite-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":true,"jsonData":{"attachLimit":0,"path":"/app/MsRewards-Reborn/MsRewards.db","pathPefix":"file:"},"readOnly":false}' -sleep 5 -echo "waited 5 sec" +sleep 30 curl -X "POST" "http://192.168.1.32:5555/grafana/api/datasources" \ -H "Content-Type: application/json" \ --user admin:admin \