Skip to content

Commit

Permalink
Fix syntax issues with conditional statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
mca-gif committed Feb 1, 2016
1 parent 5b6b08b commit 76d719a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ apache_go() {
sed -i "s/^\(.*\)www-data/\1vagrant/g" ${apache_config_file}
chown -R vagrant:vagrant /var/log/apache2

if [ !-f "${apache_vhost_file}" ]; then
if [ ! -f "${apache_vhost_file}" ]; then
cat << EOF > ${apache_vhost_file}
<VirtualHost *:80>
ServerAdmin webmaster@localhost
Expand Down Expand Up @@ -84,7 +84,7 @@ php_go() {
sed -i "s/display_startup_errors = Off/display_startup_errors = On/g" ${php_config_file}
sed -i "s/display_errors = Off/display_errors = On/g" ${php_config_file}

if [ !-f "{$xdebug_config_file}" ]; then
if [ ! -f "{$xdebug_config_file}" ]; then
cat << EOF > ${xdebug_config_file}
zend_extension=xdebug.so
xdebug.remote_enable=1
Expand All @@ -97,12 +97,12 @@ EOF
service apache2 reload

# Install latest version of Composer globally
if [ !-f "/usr/local/bin/composer" ]; then
if [ ! -f "/usr/local/bin/composer" ]; then
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
fi

# Install PHP Unit 4.8 globally
if [ !-f "/usr/local/bin/phpunit" ]; then
if [ ! -f "/usr/local/bin/phpunit" ]; then
curl -O -L https://phar.phpunit.de/phpunit-old.phar
chmod +x phpunit-old.phar
mv phpunit-old.phar /usr/local/bin/phpunit
Expand Down

0 comments on commit 76d719a

Please sign in to comment.