mirror of
				https://gitlab.sectorq.eu/jaydee/omv_backup.git
				synced 2025-10-30 10:01:11 +01:00 
			
		
		
		
	initial
This commit is contained in:
		| @@ -219,6 +219,8 @@ if _RESTORE: | |||||||
|              |              | ||||||
|              |              | ||||||
|         if app == "heimdall": |         if app == "heimdall": | ||||||
|  |             cmnd = "docker stop heimdall" | ||||||
|  |             status, output = subprocess.getstatusoutput(cmnd) | ||||||
|             entries = ["Home Assistant","Nginx Proxy Manager","Portainer","Roundcube","Authentik","Kestra"] |             entries = ["Home Assistant","Nginx Proxy Manager","Portainer","Roundcube","Authentik","Kestra"] | ||||||
|             for e in entries: |             for e in entries: | ||||||
|                 cmnd = f"sqlite3 /share/docker_data/heimdall/config/www/app.sqlite  \"SELECT url FROM items WHERE title = '{e}'\"" |                 cmnd = f"sqlite3 /share/docker_data/heimdall/config/www/app.sqlite  \"SELECT url FROM items WHERE title = '{e}'\"" | ||||||
| @@ -230,6 +232,9 @@ if _RESTORE: | |||||||
|                  |                  | ||||||
|                 cmnd = f"sqlite3 /share/docker_data/heimdall/config/www/app.sqlite  \"UPDATE items SET url = '{contents}' WHERE title = '{e}'\"" |                 cmnd = f"sqlite3 /share/docker_data/heimdall/config/www/app.sqlite  \"UPDATE items SET url = '{contents}' WHERE title = '{e}'\"" | ||||||
|                 print(cmnd) |                 print(cmnd) | ||||||
|  |                 status, output = subprocess.getstatusoutput(cmnd) | ||||||
|  |                 cmnd = "docker start heimdall" | ||||||
|  |             status, output = subprocess.getstatusoutput(cmnd) | ||||||
|         elif app == "nginx": |         elif app == "nginx": | ||||||
|             print("Stopping docker") |             print("Stopping docker") | ||||||
|             cmnd = "docker stop nginx-app-1" |             cmnd = "docker stop nginx-app-1" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 jaydee
					jaydee