Created
November 5, 2010 12:11
-
-
Save Servana/664044 to your computer and use it in GitHub Desktop.
Use this script to bootstrap your Lithium project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#OLOH SOURCE=http://www.ohloh.net/p/lithium/download?filename=lithium-0.9.5.tar.gz | |
SOURCE=http://d10xg45o6p6dbl.cloudfront.net/projects/l/lithium/lithium-0.9.5.tar.gz | |
NAME=lithium-0.9.5 | |
DB_NAME=lithium_test | |
DB_USER=lithium_user | |
VPATH=/var/www/example.com | |
#DB_PWD=`cat /opt/skystack/bootstrapper/etc/.mysql.lithium_user.shadow` | |
cd /opt/skystack/src/ && sudo wget $SOURCE | |
if [ -e /opt/skystack/src/$NAME.tar.gz ];then | |
sudo gunzip < /opt/skystack/src/$NAME.tar.gz | tar -xf - -C $VPATH/ | |
if [ -e $VPATH/$NAME/]; then | |
sudo cp -R $VPATH/$NAME/* $VPATH/ | |
sudo rm -rf $VPATH/$NAME | |
fi | |
fi | |
sudo chown -R www-data:www-data $VPATH/ | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment