-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-rollup-actions
19 lines (14 loc) · 1.09 KB
/
post-rollup-actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash -ex
# get mysql creds
db_host=$(php -r '$env = include "./app/etc/env.php"; echo $env["db"]["connection"]["default"]["host"].PHP_EOL;');
db_database=$(php -r '$env = include "./app/etc/env.php"; echo $env["db"]["connection"]["default"]["dbname"].PHP_EOL;');
db_username=$(php -r '$env = include "./app/etc/env.php"; echo $env["db"]["connection"]["default"]["username"].PHP_EOL;');
db_password=$(php -r '$env = include "./app/etc/env.php"; echo $env["db"]["connection"]["default"]["password"].PHP_EOL;');
# reduce/remove captcha threshold
mysql -h ${db_host} -u ${db_username} -p${db_password} ${db_database} -e "delete from core_config_data where path = 'recaptcha_frontend/type_recaptcha_v3/score_threshold';"
php bin/magento config:set -- recaptcha_frontend/type_recaptcha_v3/score_threshold 0
# allow account sharing in-case someone uses our generic login when Ghost Inspector is running
php bin/magento config:set admin/security/admin_account_sharing 1
# Allows some GI tests using URLs to run without issue
php bin/magento config:set admin/security/use_form_key 0
php bin/magento cache:flush