mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-03-14 23:00:01 +01:00
build
This commit is contained in:
2
main.py
2
main.py
@@ -149,7 +149,7 @@ parser.add_argument("--gpu", "-g", action="store_true")
|
||||
parser.add_argument("--timeout", type=int, default=10, help="Request timeout seconds")
|
||||
parser.add_argument("--deploy-mode", "-m", type=str, default="git", help="Deploy mode")
|
||||
parser.add_argument("--stack-mode", "-w", default=None, help="Stack mode")
|
||||
|
||||
parser.add_argument("--excluded", "-e", default=["portainer", "nginx"], help="Exclude from update")
|
||||
args = parser.parse_args()
|
||||
print("Running version:", VERSION)
|
||||
print("Environment:", args.site)
|
||||
|
||||
@@ -1036,6 +1036,8 @@ class PortainerApi:
|
||||
|
||||
if resp['Status'] == "outdated":
|
||||
if pull:
|
||||
if service_dict[service_id] in args.excluded:
|
||||
continue
|
||||
self.restart_srv(service_id, pull)
|
||||
#print(f"Service {service_dict[service_id]:<{longest}} : updated")
|
||||
self.gotify_message(f"Service {service_dict[service_id]} updated")
|
||||
|
||||
Reference in New Issue
Block a user