diff --git a/bench/patches/patches.txt b/bench/patches/patches.txt index 138862fa..66d36b87 100644 --- a/bench/patches/patches.txt +++ b/bench/patches/patches.txt @@ -1,2 +1,3 @@ bench.patches.v3.deprecate_old_config bench.patches.v3.celery_to_rq +bench.patches.v3.redis_bind_ip diff --git a/bench/patches/v3/redis_bind_ip.py b/bench/patches/v3/redis_bind_ip.py new file mode 100644 index 00000000..a5b1196c --- /dev/null +++ b/bench/patches/v3/redis_bind_ip.py @@ -0,0 +1,10 @@ +import click +from bench.config.redis import generate_config + +def execute(bench_path): + click.confirm('\nThis update will replace ERPNext\'s Redis configuration files to fix a major security issue.\n' + 'If you don\'t know what this means, type Y ;)\n\n' + 'Do you want to continue?', + abort=True) + + generate_config(bench_path)