Unify password creation methods, shorten admin passwords
This commit is contained in:
parent
d69c3a4d23
commit
01154a7d24
@ -33,7 +33,7 @@ export SAHANA_HMAC=$(head -c 18 /dev/urandom | base64)
|
||||
envsubst <${SOURCE_DIR}/sahana/srv/sahana/applications/eden/models/000_config.py >/srv/sahana/applications/eden/models/000_config.py
|
||||
cp ${SOURCE_DIR}/sahana/srv/sahana/applications/eden/modules/templates/default/config.py /srv/sahana/applications/eden/modules/templates/default/config.py
|
||||
export SAHANA_ADMIN_USER=admin@example.com
|
||||
export SAHANA_ADMIN_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
export SAHANA_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
||||
envsubst <${SOURCE_DIR}/sahana/srv/sahana/applications/eden/modules/templates/default/users/masterUsers.csv >/srv/sahana/applications/eden/modules/templates/default/users/masterUsers.csv
|
||||
cp ${SOURCE_DIR}/sahana/srv/sahana/applications/eden/languages/cs.py /srv/sahana/applications/eden/languages/cs.py
|
||||
|
||||
|
@ -12,7 +12,7 @@ mv /srv/seeddms51x /srv/seeddms
|
||||
rm -f /srv/seeddms.tgz
|
||||
|
||||
# Populate database
|
||||
export SEEDDMS_PWD=$(head -c 260 /dev/urandom | tr -cd '[:alnum:]' | head -c 26)
|
||||
export SEEDDMS_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
envsubst <${SOURCE_DIR}/seeddms/tmp/seeddms-createdb.sql >/tmp/seeddms-createdb.sql
|
||||
sudo -u postgres psql -f /tmp/seeddms-createdb.sql
|
||||
rm -f /tmp/seeddms-createdb.sql
|
||||
|
@ -31,13 +31,13 @@ cd /srv/pandora/src/python-ox && /srv/pandora/bin/python setup.py develop
|
||||
/srv/pandora/bin/pip install -r /srv/pandora/requirements.txt
|
||||
|
||||
# Create PostgreSQL user and database
|
||||
export PANDORA_PWD=$(head -c 260 /dev/urandom | tr -cd '[:alnum:]' | head -c 26)
|
||||
export PANDORA_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
envsubst <${SOURCE_DIR}/pandora/tmp/pandora-createdb.sql >/tmp/pandora-createdb.sql
|
||||
sudo -u postgres psql -f /tmp/pandora-createdb.sql
|
||||
rm -f /tmp/pandora-createdb.sql
|
||||
|
||||
# Configure RabbitMQ
|
||||
export PANDORA_RABBIT_PWD=$(head -c 260 /dev/urandom | tr -cd '[:alnum:]' | head -c 26)
|
||||
export PANDORA_RABBIT_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
rabbitmqctl add_user pandora ${PANDORA_RABBIT_PWD}
|
||||
rabbitmqctl add_vhost /pandora
|
||||
rabbitmqctl set_permissions -p /pandora pandora ".*" ".*" ".*"
|
||||
|
Loading…
Reference in New Issue
Block a user