Skip to content

Instantly share code, notes, and snippets.

@michael-bouvy
Last active January 4, 2016 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-bouvy/8639331 to your computer and use it in GitHub Desktop.
Save michael-bouvy/8639331 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p /var/www/rbschange/repository/framework
cd /var/www/rbschange/repository/framework
git clone https://github.com/RBSChange/framework framework-x.y.z
cd ../..
ln -s repository/framework/framework-x.y.z framework
echo "default" > profile
vi change.xml # put appropriate content
vi change.properties # put appropriate content
sudo chgrp www-data .
sudo chmod 775 .
sudo -u www-data php framework/bin/change.php init-project
sudo -u www-data php framework/bin/change.php init-webapp
vi config/project.default.xml # configure properly
mysql -y your_user -p # create database
sudo -u www-data php framework/bin/change.php generate-database
sudo -u www-data php framework/bin/change.php reset-database
cd themes
git clone https://github.com/RBSChange/themes.default default
cd ..
sudo -u www-data php framework/bin/change.php theme.install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment