mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
flush-memcached: Respect MEMCACHED_LOCATION; handle errors.
Fixes #13238. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
@@ -17,7 +17,7 @@ if [ "$1" != "--force" ]; then
|
||||
DROP DATABASE IF EXISTS zulip_test;
|
||||
CREATE DATABASE zulip_test TEMPLATE zulip_test_template;
|
||||
EOF
|
||||
sh "$(dirname "$0")/../../scripts/setup/flush-memcached"
|
||||
"$(dirname "$0")/../../scripts/setup/flush-memcached"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@@ -29,7 +29,7 @@ psql -v ON_ERROR_STOP=1 -h localhost postgres zulip_test <<EOF
|
||||
DROP DATABASE IF EXISTS zulip_test;
|
||||
CREATE DATABASE zulip_test TEMPLATE zulip_test_base;
|
||||
EOF
|
||||
sh "$(dirname "$0")/../../scripts/setup/flush-memcached"
|
||||
"$(dirname "$0")/../../scripts/setup/flush-memcached"
|
||||
|
||||
./manage.py migrate --noinput
|
||||
./manage.py get_migration_status --output="migration_status_test"
|
||||
|
||||
@@ -106,6 +106,6 @@ psql -v ON_ERROR_STOP=1 -e -h localhost postgres "$USERNAME" <<EOF
|
||||
CREATE DATABASE $DBNAME TEMPLATE $DBNAME_BASE;
|
||||
EOF
|
||||
|
||||
sh "$(dirname "$0")/../../scripts/setup/flush-memcached"
|
||||
"$(dirname "$0")/../../scripts/setup/flush-memcached"
|
||||
|
||||
echo "Database created"
|
||||
|
||||
Reference in New Issue
Block a user