mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	need to fix api calls to grafana daashbord
This commit is contained in:
		
							
								
								
									
										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
 | 
			
		||||
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 
 | 
			
		||||
		Reference in New Issue
	
	Block a user