Move bin/get-django-setting to scripts/.

This commit is contained in:
Tim Abbott 2016-05-07 19:02:32 -07:00
parent a315849a9e
commit 6e1872987d
5 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ subprocess.check_call(["supervisorctl", "start", "zulip-tornado zulip-django zul
logging.info("Starting workers")
subprocess.check_call(["supervisorctl", "start", "zulip-workers:*"])
using_sso = subprocess.check_output(['./bin/get-django-setting', 'USING_APACHE_SSO'])
using_sso = subprocess.check_output(['./scripts/get-django-setting', 'USING_APACHE_SSO'])
if using_sso.strip() == 'True':
logging.info("Restarting Apache WSGI process...")
subprocess.check_call(["pkill", "-f", "apache2", "-u", "zulip"])

View File

@ -5,8 +5,8 @@
set -e
set -x
RABBITMQ_USERNAME=$("$(dirname "$0")/../../bin/get-django-setting" RABBITMQ_USERNAME)
RABBITMQ_PASSWORD=$("$(dirname "$0")/../../bin/get-django-setting" RABBITMQ_PASSWORD)
RABBITMQ_USERNAME=$("$(dirname "$0")/../get-django-setting" RABBITMQ_USERNAME)
RABBITMQ_PASSWORD=$("$(dirname "$0")/../get-django-setting" RABBITMQ_PASSWORD)
sudo rabbitmqctl delete_user "$RABBITMQ_USERNAME" || true
sudo rabbitmqctl delete_user zulip || true
sudo rabbitmqctl delete_user guest || true

View File

@ -22,7 +22,7 @@ VAGRANTUSERNAME=$(whoami)
if [[ $# == 0 ]]; then
USERNAME=zulip
PASSWORD=$("$(dirname "$0")/../bin/get-django-setting" LOCAL_DATABASE_PASSWORD)
PASSWORD=$("$(dirname "$0")/../scripts/get-django-setting" LOCAL_DATABASE_PASSWORD)
DBNAME=zulip
SEARCH_PATH="$USERNAME",public
elif [[ $# == 4 ]]; then

View File

@ -2,4 +2,4 @@
set -x
set -e
"$(dirname "$0")/postgres-init-dev-db" zulip_test "$("$(dirname "$0")/../bin/get-django-setting" LOCAL_DATABASE_PASSWORD)" zulip_test zulip,public
"$(dirname "$0")/postgres-init-dev-db" zulip_test "$("$(dirname "$0")/../scripts/get-django-setting" LOCAL_DATABASE_PASSWORD)" zulip_test zulip,public