Skip to content

Commit

Permalink
Merge pull request #90 from dhensby/pulls/shebang
Browse files Browse the repository at this point in the history
Moving to proper shebang line
  • Loading branch information
willmorgan committed Aug 3, 2015
2 parents add4581 + e31cdec commit 9efc6ae
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion scripts/always.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "starting httpd"
systemctl start httpd.service
Expand Down
2 changes: 1 addition & 1 deletion scripts/apache.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

## TODOs ##
# Make sure following modules are installed for html5 boilerplate htaccess #
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Starting BB bootstrap"

Expand Down
2 changes: 1 addition & 1 deletion scripts/bower.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Deps
/vagrant/scripts/node.sh
Expand Down
4 changes: 2 additions & 2 deletions scripts/composer.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Grab the installer and pipe it into PHP
echo "Downloading composer"
Expand All @@ -9,7 +9,7 @@ mv composer.phar /usr/bin/composer

echo "Adding composer's vendor directory to system PATH"
cat >/etc/profile.d/composer-bin-root.sh <<EOF
#!/bin/bash
#!/usr/bin/env bash
pathmunge /home/vagrant/.composer/vendor/bin after
pathmunge /root/.composer/vendor/bin after
Expand Down
2 changes: 1 addition & 1 deletion scripts/epel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ ! -f /etc/yum.repos.d/epel.repo ]; then
echo "Installing Webtatic"
Expand Down
2 changes: 1 addition & 1 deletion scripts/grunt-watch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Setting up grunt watch startup script (depends on grunt.sh)"

Expand Down
2 changes: 1 addition & 1 deletion scripts/grunt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Installing Grunt & Grunt CLI by NPM"
npm install -y -g grunt-cli
Expand Down
4 changes: 2 additions & 2 deletions scripts/mailcatcher.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash

echo 'Installing ruby and sqlite'
yum install -y ruby rubygems ruby-devel sqlite-devel gcc-c++

echo 'Creating pathmunge file'
echo "#!/bin/bash" > /etc/profile.d/local-bin.sh
echo "#!/usr/bin/env bash" > /etc/profile.d/local-bin.sh
echo "pathmunge /usr/local/bin after" >> /etc/profile.d/local-bin.sh

echo 'installing mailcatcher'
Expand Down
2 changes: 1 addition & 1 deletion scripts/mariadb.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Installing MariaDB"
yum install -y mariadb-server
Expand Down
2 changes: 1 addition & 1 deletion scripts/node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Installing NodeJS (CentOS method)"

Expand Down
6 changes: 3 additions & 3 deletions scripts/ntp.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo 'installing and configuring NTP'

Expand All @@ -22,9 +22,9 @@ date
sed -i 's/centos.pool.ntp.org/pool.ntp.org iburst/g' /etc/ntp.conf

# Add this to not fail on big time gaps ( VMs that resume/pause )
echo "tinker panic 0" >> /etc/ntp.conf
echo "tinker panic 0" >> /etc/ntp.conf

# Create a script to update time.
# Create a script to update time.
cat >/usr/bin/updatetime <<EOL
systemctl stop ntpd.service
ntpdate pool.ntp.org
Expand Down
2 changes: 1 addition & 1 deletion scripts/php-54.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

PHP_NAME="php"

Expand Down
2 changes: 1 addition & 1 deletion scripts/php-55.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

PHP_NAME="php55w"

Expand Down
2 changes: 1 addition & 1 deletion scripts/php-56.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

PHP_NAME="php56w"

Expand Down
2 changes: 1 addition & 1 deletion scripts/php-mcrypt.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This is only required to install mcrypt in php versions < 5.4 on CentOS
# Mcrypt is a common dependency for 5.5+ apps, so it is installed by default with those scripts
# Ensure you include in provisioning AFTER php.sh
Expand Down
2 changes: 1 addition & 1 deletion scripts/php-xhprof.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# Require repo deps
/vagrant/scripts/epel.sh
Expand Down
4 changes: 2 additions & 2 deletions scripts/sass.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Installing SASS 3.4.10"
echo "Ensuring Ruby (dependency) is installed and up to date"
yum install -y ruby ruby-devel rubygems
echo "Ruby check complete. Version: `ruby --version`"


echo "#!/bin/bash" > /etc/profile.d/local-bin.sh
echo "#!/usr/bin/env bash" > /etc/profile.d/local-bin.sh
echo "pathmunge /usr/local/bin after" >> /etc/profile.d/local-bin.sh

gem install -N sass -v 3.4.10
Expand Down
2 changes: 1 addition & 1 deletion scripts/silverstripe-tasks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

echo "Performing SilverStripe helper tasks"

Expand Down
4 changes: 2 additions & 2 deletions scripts/sspak.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#!/usr/bin/env bash
#Install the sspak tool
echo "Installing SSPak"

curl -sS https://silverstripe.github.io/sspak/install | php -- /usr/bin

echo "SSpak installed"
echo "SSpak installed"
2 changes: 1 addition & 1 deletion scripts/xdebug.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

# For running PHPStorm or IntelliJ, follow these steps:
# 1. Go to Settings => Language & Frameworks => PHP => Servers
Expand Down

0 comments on commit 9efc6ae

Please sign in to comment.