Commit c01b005f authored by anarcat's avatar anarcat

remove almost useless variable in postinst

we were going through a lot of trouble to just display the platform alias, we don't care about the alias, just the location, which we still display
parent 86ddda82
......@@ -57,13 +57,10 @@ case "$1" in
if [ -d "$NEW_PLATFORM" ] && [ "$drupal_root" = "$NEW_PLATFORM" ]; then
echo "it seems to be the same version as the one we're trying to install, not upgrading"
# get the platform alias before we upgrade
# ugly, but not accessible programatically
platform=`sed -n "/platform/{s/^.* => '//;s/'.*$//;p}" $VARLIB/.drush/hostmaster.alias.drushrc.php`
echo "upgrading the frontend from $drupal_root to $NEW_PLATFORM"
cd "$drupal_root"
su -s /bin/sh aegir -c "drush hostmaster-migrate $FLAGS '$site_uri' '$NEW_PLATFORM'"
echo "upgrade finished, old platform $platform left in $drupal_root"
echo "upgrade finished, old platform left in $drupal_root"
# fresh install
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