summaryrefslogtreecommitdiff
path: root/config/initializers/gitlab_workhorse_secret.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/gitlab_workhorse_secret.rb')
-rw-r--r--config/initializers/gitlab_workhorse_secret.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/initializers/gitlab_workhorse_secret.rb b/config/initializers/gitlab_workhorse_secret.rb
new file mode 100644
index 00000000000..ed54dc11098
--- /dev/null
+++ b/config/initializers/gitlab_workhorse_secret.rb
@@ -0,0 +1,8 @@
+begin
+ Gitlab::Workhorse.secret
+rescue
+ Gitlab::Workhorse.write_secret
+end
+
+# Try a second time. If it does not work this will raise.
+Gitlab::Workhorse.secret