6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Set password equal to hostname as part of cloud deployment

This commit is contained in:
Régis Behmo 2019-03-10 17:10:52 +01:00
parent bb8be6eaed
commit b98f5bf4b7

View File

@ -1,6 +1,6 @@
#! /bin/bash -e
# Provision an AWS cloud instance with tutor.
# Run with: curl -sSL https://raw.githubusercontent.com/regisb/tutor/master/cloud/ubuntu.sh | sudo bash -e
# Run with: curl -sSL https://raw.githubusercontent.com/regisb/tutor/master/cloud/aws.sh | sudo bash -e
export TUTOR_USER="$SUDO_USER"
export DEBIAN_FRONTEND=noninteractive
@ -39,6 +39,9 @@ echo "=============== Building docker images"
tutor images env
tutor images build all
echo "=============== Configure Web UI login/password"
tutor webui configure --user tutor --password "$(curl http://169.254.169.254/latest/meta-data/public-hostname)"
echo "=============== Configuring supervisor"
echo "[program:tutor]
command=/usr/local/bin/tutor webui start