need to fix api calls to grafana daashbord

This commit is contained in:
piair 2023-08-24 13:09:36 +02:00
parent 661c76b9f7
commit 864bf95138
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
echo "\n\nsetting up NGINX\n\n"
printf "\n\nsetting up NGINX\n\n"
rm /etc/nginx/sites-available/default
echo "
@ -35,14 +35,14 @@ server {
}
" >> /etc/nginx/sites-available/default
echo "\n\nNGINX configuration successfull\n\n"
printf "\n\nNGINX configuration successfull\n\n"
service nginx restart
echo "\n\ncreating sqlite databases\n\n"
printf "\n\ncreating sqlite databases\n\n"
sqlite3 /app/MsRewards-Reborn/MsRewards.db "CREATE TABLE daily (id INTEGER PRIMARY KEY,compte TEXT,points int,date TEXT);"
sqlite3 /app/MsRewards-Reborn/MsRewards.db "CREATE TABLE comptes (id INTEGER PRIMARY KEY,compte TEXT,last_pts int, banned int);"
echo "\n\nconfigurating grafana\n\n"
printf "\n\nconfigurating grafana\n\n"
cp /app/MsRewards-Reborn/grafana-config/grafana.ini /etc/grafana/
grafana-cli plugins install frser-sqlite-datasource
@ -62,5 +62,5 @@ curl 'http://192.168.1.32:5555/grafana/api/dashboards/import' \
--insecure
echo "setting up default dashboard"
printf "setting up default dashboard"
cp /app/MsRewards-Reborn/grafana-config/Stats-dashbord.json /usr/share/grafana/public/dashboards/home.json