need to fix api calls to grafana daashbord
This commit is contained in:
parent
661c76b9f7
commit
864bf95138
10
config.sh
10
config.sh
@ -1,4 +1,4 @@
|
|||||||
echo "\n\nsetting up NGINX\n\n"
|
printf "\n\nsetting up NGINX\n\n"
|
||||||
|
|
||||||
rm /etc/nginx/sites-available/default
|
rm /etc/nginx/sites-available/default
|
||||||
echo "
|
echo "
|
||||||
@ -35,14 +35,14 @@ server {
|
|||||||
|
|
||||||
}
|
}
|
||||||
" >> /etc/nginx/sites-available/default
|
" >> /etc/nginx/sites-available/default
|
||||||
echo "\n\nNGINX configuration successfull\n\n"
|
printf "\n\nNGINX configuration successfull\n\n"
|
||||||
service nginx restart
|
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 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);"
|
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/
|
cp /app/MsRewards-Reborn/grafana-config/grafana.ini /etc/grafana/
|
||||||
grafana-cli plugins install frser-sqlite-datasource
|
grafana-cli plugins install frser-sqlite-datasource
|
||||||
@ -62,5 +62,5 @@ curl 'http://192.168.1.32:5555/grafana/api/dashboards/import' \
|
|||||||
--insecure
|
--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
|
cp /app/MsRewards-Reborn/grafana-config/Stats-dashbord.json /usr/share/grafana/public/dashboards/home.json
|
Loading…
Reference in New Issue
Block a user