Skip to content

Commit 0c03b12

Browse files
committed
Changed install.sh script.
1 parent e0f8e3d commit 0c03b12

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Scripts/install.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
1111
sudo locale-gen en_US.UTF-8
1212
# Make sure we have up-to-date stuff
1313
sudo apt-get update
14+
sudo apt-get install -y php5-intl
1415
fi
1516
# Install dependencies
1617
sudo apt-get install -y apache2 libapache2-mod-php5 php-pear php5-curl php5-sqlite php5-mysql acl curl git
@@ -37,7 +38,7 @@ fi
3738
HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1`
3839

3940
sudo mkdir -p /opt/codebender
40-
sudo cp -r . /opt/codebender/$PACKAGENAME
41+
sudo cp -r ./ /opt/codebender/$PACKAGENAME
4142
sudo chown -R `whoami`:$HTTPDUSER /opt/codebender/$PACKAGENAME
4243
cd /opt/codebender/$PACKAGENAME
4344

@@ -86,9 +87,7 @@ cd Symfony
8687
## For reference, here's a command to replace a substring in a file
8788
## cat kourades.sh | sed 's/kourades/skata/g' | tee skata.sh > /dev/null 2>&1
8889

89-
# cp app/config/parameters.yml.dist app/config/parameters.yml
90-
cat app/config/parameters.yml.dist | sed 's/database_pass: ~/database_pass: hello/g' > app/config/parameters.yml
91-
90+
cp app/config/parameters.yml.dist app/config/parameters.yml
9291

9392
set +x
9493
cat app/config/parameters.yml | grep -v "compiler:" | tee app/config/parameters.yml > /dev/null
@@ -101,10 +100,6 @@ set -x
101100

102101
curl -s http://getcomposer.org/installer | php
103102
php composer.phar install
104-
#php app/console doctrine:database:create
105-
#php app/console doctrine:schema:create
106-
#yes | php app/console doctrine:fixtures:load
107-
#php app/console codebender:tests:install
108103

109104
# TODO: Add this later on (Apache config)
110105
#sudo cp /opt/codebender/$PACKAGENAME/apache-config /etc/apache2/sites-available/codebender

0 commit comments

Comments
 (0)