summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorHerman van Rink2016-06-23 12:44:14 (GMT)
committerHerman van Rink2016-06-23 12:44:14 (GMT)
commit07741bdccbcd05dff66f2a948dbeac0d78b951b2 (patch)
tree451c7c214f33b2450b0925d903e028f251e8158b /debian
parent51b97cf09c8bff877f42b8c25ffd3bb83db9674e (diff)
Issue #2754309: Re-indent
Diffstat (limited to 'debian')
-rw-r--r--debian/aegir3-provision.postinst66
1 files changed, 33 insertions, 33 deletions
diff --git a/debian/aegir3-provision.postinst b/debian/aegir3-provision.postinst
index c6be630..d73cd4f 100644
--- a/debian/aegir3-provision.postinst
+++ b/debian/aegir3-provision.postinst
@@ -56,58 +56,58 @@ case "$1" in
if [ "$DRUSH_VERSION" != "ignore" ]; then
- DRUSH_MAJOR_VERSION=$(echo $DRUSH_VERSION| cut -d. -f1)
+ DRUSH_MAJOR_VERSION=$(echo $DRUSH_VERSION| cut -d. -f1)
- if [ "$DRUSH_VERSION" = "stable" ]; then
+ if [ "$DRUSH_VERSION" = "stable" ]; then
- DRUSH_PHAR_URL="http://files.drush.org/drush.phar"
+ DRUSH_PHAR_URL="http://files.drush.org/drush.phar"
- elif [ "$DRUSH_VERSION" = "unstable" ]; then
+ elif [ "$DRUSH_VERSION" = "unstable" ]; then
- DRUSH_PHAR_URL="http://files.drush.org/drush-unstable.phar"
+ DRUSH_PHAR_URL="http://files.drush.org/drush-unstable.phar"
- elif [ "$DRUSH_MAJOR_VERSION" -ge "8" ]; then
+ elif [ "$DRUSH_MAJOR_VERSION" -ge "8" ]; then
- DRUSH_PHAR_URL="https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar"
+ DRUSH_PHAR_URL="https://github.com/drush-ops/drush/releases/download/$DRUSH_VERSION/drush.phar"
- fi
+ fi
- if [ -n "$DRUSH_PHAR_URL" ]; then
+ if [ -n "$DRUSH_PHAR_URL" ]; then
- curl -SsL $DRUSH_PHAR_URL -o drush
- chmod +x drush
+ curl -SsL $DRUSH_PHAR_URL -o drush
+ chmod +x drush
- DRUSH_PATH="/usr/local/bin/drush"
+ DRUSH_PATH="/usr/local/bin/drush"
- # Rename an old drush executable.
- if [ -f $DRUSH_PATH ]; then
- mv $DRUSH_PATH $DRUSH_PATH-old-$(date +'%Y-%m-%d')
- fi
+ # Rename an old drush executable.
+ if [ -f $DRUSH_PATH ]; then
+ mv $DRUSH_PATH $DRUSH_PATH-old-$(date +'%Y-%m-%d')
+ fi
- mv drush $DRUSH_PATH
+ mv drush $DRUSH_PATH
- else # Drush versions prior to 8 aren't available as .phar's.
+ else # Drush versions prior to 8 aren't available as .phar's.
- # Install composer.
- COMPOSER_HOME="$HOME/.composer"
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
+ # Install composer.
+ COMPOSER_HOME="$HOME/.composer"
+ curl -sS https://getcomposer.org/installer | php
+ mv composer.phar /usr/local/bin/composer
- # Install Drush.
- su -c "composer global require drush/drush:$DRUSH_VERSION" aegir
+ # Install Drush.
+ su -c "composer global require drush/drush:$DRUSH_VERSION" aegir
- # Add composer's bin dir to the $PATH.
- echo "export PATH=\"\$HOME/.composer/vendor/bin:\$PATH\"" >> ~aegir/.bashrc
+ # Add composer's bin dir to the $PATH.
+ echo "export PATH=\"\$HOME/.composer/vendor/bin:\$PATH\"" >> ~aegir/.bashrc
- # Rename an old drush executable.
- if [ -f /usr/local/bin/drush ]; then
- mv /usr/local/bin/drush /usr/local/bin/drush-old-$(date +'%Y-%m-%d')
- fi
+ # Rename an old drush executable.
+ if [ -f /usr/local/bin/drush ]; then
+ mv /usr/local/bin/drush /usr/local/bin/drush-old-$(date +'%Y-%m-%d')
+ fi
- # Symlink Drush for other users to use.
- ln -s ~aegir/.composer/vendor/bin/drush /usr/local/bin
+ # Symlink Drush for other users to use.
+ ln -s ~aegir/.composer/vendor/bin/drush /usr/local/bin
- fi
+ fi
fi
;;