Commit ed28f0a3 authored by Alvaro Lorenzo's avatar Alvaro Lorenzo
Browse files

New interactive dialogs added to ease the process

parent 2c5e504f
......@@ -10,6 +10,11 @@
# dockservers from scripts etc.
ssh-keygen
echo "Please copy the public key on your gitlab account with the name gliders"
cat /home/gliders/.ssh/id_rsa.pub
echo "Plese press return when you are done"
read
# Install Composer
mkdir -p /home/gliders/bin
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
......@@ -33,14 +38,15 @@ git clone git@gitlab.noc.soton.ac.uk:owanes/gliders-website.git
cd gliders-tools
python setup.py install
echo "please enter your mysql root user password when prompted (three times)"
mysql -u root -p < new_schema.sql
echo "CREATE USER 'gliders'@'%' IDENTIFIED BY 'gliders9876';" | mysql -u root -p
echo "GRANT ALL ON gliders.* TO 'gliders'@'%';" | mysql -u root -p
echo "please enter your mysql root user password"
read -s pass
mysql -u root -p$pass < new_schema.sql
echo "CREATE USER 'gliders'@'%' IDENTIFIED BY '"$pass"' ;" | mysql -u root -p$pass
echo "GRANT ALL ON gliders.* TO 'gliders'@'%';" | mysql -u root -p$pass
cd bin
./migrate_data.sh
sh migrate_data.sh
# Deploy the website
cd /home/gliders/code/gliders-website
./bin/deploy.sh /var/gliders/www_dev dev
./bin/deploy.sh /var/gliders/www prod
sh bin/deploy.sh /var/gliders/www_dev dev
sh bin/deploy.sh /var/gliders/www prod
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment