mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	c'est un peu plus joli, et en plus ca marche (ptet?)
This commit is contained in:
		@@ -452,14 +452,6 @@ def maxi(dict):
 | 
				
			|||||||
            m = int(i)
 | 
					            m = int(i)
 | 
				
			||||||
    return(m+1)
 | 
					    return(m+1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def setup_grafana():
 | 
					 | 
				
			||||||
    print("setup_grafana")
 | 
					 | 
				
			||||||
    if get("http://localhost:3000/api/datasources").text == "[]" :
 | 
					 | 
				
			||||||
        print("subprocess started")
 | 
					 | 
				
			||||||
        subprocess.Popen(["bash",'/app/MsRewards-Reborn/config/request.sh'])
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
setup_grafana()
 | 
					 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
    update_jobs()
 | 
					    update_jobs()
 | 
				
			||||||
    edit_version()
 | 
					    edit_version()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
service nginx start
 | 
					service nginx start
 | 
				
			||||||
service grafana-server start
 | 
					service grafana-server start
 | 
				
			||||||
 | 
					bash /app/MsRewards-Reborn/config/request.sh
 | 
				
			||||||
gunicorn --reload -w 4 -b 0.0.0.0:6666 'app:app'
 | 
					gunicorn --reload -w 4 -b 0.0.0.0:6666 'app:app'
 | 
				
			||||||
		Reference in New Issue
	
	Block a user