Commit 01ef568f authored by mig5's avatar mig5 Committed by mig5

don't hardcode /var/aegir in upgrade.sh, rely on /home/miguel like install.sh.txt

parent a229226a
......@@ -14,14 +14,14 @@
AEGIR_VERSION=HEAD
AEGIR_DOMAIN=aegir.example.com
AEGIR_DIR=/var/aegir
DRUPAL_DIR=$AEGIR_DIR/hostmaster-$AEGIR_VERSION
AEGIR_HOME="$HOME"
DRUPAL_DIR=$AEGIR_HOME/hostmaster-$AEGIR_VERSION
DRUSH_VERSION=7.x-4.0
DRUSH_MAKE_VERSION=6.x-2.0-beta10
OLD_DRUPAL_DIR=$AEGIR_DIR/hostmaster-0.4-beta1
DRUSH_DIR=$AEGIR_DIR/drush
OLD_DRUPAL_DIR=$AEGIR_HOME/hostmaster-0.4-beta2
DRUSH_DIR=$AEGIR_HOME/drush
DRUSH="php $DRUSH_DIR/drush.php"
BACKUP_DIR=$AEGIR_DIR/pre-upgrade-`date '+%F-%H%M'`
BACKUP_DIR=$AEGIR_HOME/pre-upgrade-`date '+%F-%H%M'`
########################################################################
# functions
......@@ -73,7 +73,7 @@ cat <<EOF
* that the following settings are correct
The Aegir version to upgrade to is $AEGIR_VERSION
The Aegir home dir is $AEGIR_DIR
The Aegir home dir is $AEGIR_HOME
The new hostmaster platform will be $DRUPAL_DIR
The version of Drush is $DRUSH_VERSION
The version of Drush Make is $DRUSH_MAKE_VERSION
......@@ -98,7 +98,7 @@ if [ -d $DRUSH_DIR ]; then
mv $DRUSH_DIR $BACKUP_DIR
fi
cd $AEGIR_DIR
cd $AEGIR_HOME
wget http://ftp.drupal.org/files/projects/drush-$DRUSH_VERSION.tar.gz
gunzip -c drush-$DRUSH_VERSION.tar.gz | tar -xf -
rm drush-$DRUSH_VERSION.tar.gz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment