about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorDavid Baucum <maxolasersquad@gmail.com>2018-04-22 05:49:16 -0400
committerEugen Rochko <eugen@zeonfederated.com>2018-04-22 11:49:16 +0200
commitca9192d9ba1c27689d7a14d0fb5b426c3d73c9f4 (patch)
tree19164fb7a81a072fd73ba0e73a979072091faf0d /lib
parent648d645c2fc4e7b266cb4d83bd4ed62e929dd363 (diff)
Ability to specify Redis passwd on mastodon:setup (#7222)
Closes #7221
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/mastodon.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index 505c7e0fa..b5a148337 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -107,9 +107,16 @@ namespace :mastodon do
           q.convert :int
         end
 
+        env['REDIS_PASSWORD'] = prompt.ask('Redis password:') do |q|
+          q.required false
+          a.default nil
+          q.modify :strip
+        end
+
         redis_options = {
           host: env['REDIS_HOST'],
           port: env['REDIS_PORT'],
+          password: env['REDIS_PASSWORD'],
           driver: :hiredis,
         }