mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 14:17:46 +00:00
Do not start tutor service in aws provisioning
If we do, then the web UI password gets stored in the image.
This commit is contained in:
parent
9922b781f4
commit
20b77f6d5e
@ -42,6 +42,7 @@ tutor images build all
|
|||||||
echo "=============== Create Web UI script"
|
echo "=============== Create Web UI script"
|
||||||
echo '#! /bin/bash
|
echo '#! /bin/bash
|
||||||
if [ ! -f $(tutor config printroot)/env/webui/config.yml ]; then
|
if [ ! -f $(tutor config printroot)/env/webui/config.yml ]; then
|
||||||
|
mkdir -p $(tutor config printroot)/env/webui
|
||||||
tutor webui configure --user tutor --password "$(curl http://169.254.169.254/latest/meta-data/instance-id)"
|
tutor webui configure --user tutor --password "$(curl http://169.254.169.254/latest/meta-data/instance-id)"
|
||||||
fi
|
fi
|
||||||
tutor webui start' | sudo tee /usr/local/bin/tutor-webui
|
tutor webui start' | sudo tee /usr/local/bin/tutor-webui
|
||||||
@ -53,4 +54,3 @@ command=/usr/local/bin/tutor-webui
|
|||||||
environment=HOME=/home/$TUTOR_USER
|
environment=HOME=/home/$TUTOR_USER
|
||||||
autorestart=true
|
autorestart=true
|
||||||
user=$TUTOR_USER" | sudo tee /etc/supervisor/conf.d/tutor.conf
|
user=$TUTOR_USER" | sudo tee /etc/supervisor/conf.d/tutor.conf
|
||||||
sudo supervisorctl update
|
|
||||||
|
Loading…
Reference in New Issue
Block a user