From c941fac2cc7c41d09d72b58712e8226831a32bb7 Mon Sep 17 00:00:00 2001 From: William Easton Date: Fri, 24 Aug 2018 06:08:46 -0500 Subject: [PATCH] fix(api): set templatesURL in settings when using the --templates flag Re-add the CLI for external template management --- api/cmd/portainer/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/cmd/portainer/main.go b/api/cmd/portainer/main.go index e706907d7..b3918d1eb 100644 --- a/api/cmd/portainer/main.go +++ b/api/cmd/portainer/main.go @@ -178,6 +178,10 @@ func initSettings(settingsService portainer.SettingsService, flags *portainer.CL SnapshotInterval: *flags.SnapshotInterval, } + if *flags.Templates != "" { + settings.TemplatesURL = *flags.Templates + } + if *flags.Labels != nil { settings.BlackListedLabels = *flags.Labels } else {