Minor fixes to setup script
This commit is contained in:
parent
9d8e7ea919
commit
6ccb1e5395
1 changed files with 4 additions and 2 deletions
|
@ -18,10 +18,12 @@ apt-get -y install nginx
|
|||
apt-get -y install mysql-server
|
||||
|
||||
echo "Installing pip dependencies..."
|
||||
pip install -r scripts/requirements.txt
|
||||
pip install -r /vagrant/scripts/requirements.txt
|
||||
|
||||
echo "PATH=$PATH:/vagrant" >> /etc/profile
|
||||
cp /vagrant/ctf.nginx /etc/nginx/sites-enabled/ctf
|
||||
rm /etc/nginx/sites-*/default
|
||||
|
||||
echo "$MYSQL_ROOT_PASSWORD" | mysql -u root -p -e "CREATE DATABASE easyctf;"
|
||||
sudo service nginx restart
|
||||
|
||||
mysql -u root -p"$MYSQL_ROOT_PASSWORD" -e "CREATE DATABASE easyctf;"
|
||||
|
|
Loading…
Reference in a new issue