summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Beaupré2011-03-24 23:41:21 (GMT)
committerAntoine Beaupré2011-03-24 23:41:21 (GMT)
commitd89c9eb868da43bbd9d381070dc7a7472143f3ee (patch)
tree39f2345bd916a27c33e8cc67327c7f944e5807a3
parenta6a2b49a6ad15a5eddadaab46cab62017cf25efd (diff)
compare canonical paths when checking for upgradesdebian/1.0_rc2-1
-rw-r--r--debian/aegir-hostmaster.postinst4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/aegir-hostmaster.postinst b/debian/aegir-hostmaster.postinst
index 1f1ff5c..4a1c9ef 100644
--- a/debian/aegir-hostmaster.postinst
+++ b/debian/aegir-hostmaster.postinst
@@ -35,7 +35,9 @@ case "$1" in
db_stop
. $TEMPFILE
echo "Aegir frontend (@hostmaster) site detected in $drupal_root"
- NEW_PLATFORM="$VARLIB/hostmaster-$VERSION"
+ # make those paths canonical to make sure we can compare correctly
+ NEW_PLATFORM=`readlink -f "$VARLIB/hostmaster-$VERSION"`
+ drupal_root=`readlink -f $drupal_root`
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"
else