From 4fa8d3e61c643ccbdce3c0268e7899d3aecbc4c9 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Thu, 23 Oct 2014 21:41:55 -0700 Subject: [PATCH] provide hash -r instructions --- .../initial-engine-post-upgrade.js | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/scripts/admin/upgrade-to-engine/initial-engine-post-upgrade.js b/scripts/admin/upgrade-to-engine/initial-engine-post-upgrade.js index 90949ebc05..e596f8f0ca 100644 --- a/scripts/admin/upgrade-to-engine/initial-engine-post-upgrade.js +++ b/scripts/admin/upgrade-to-engine/initial-engine-post-upgrade.js @@ -121,8 +121,24 @@ Fiber(function () { "by running the following command:\n" + "\n" + " $ curl https://install.meteor.com/ | sh\n" + - "\n" + - "Removing your current installation.\n"); + "\n"); + + if (package_stamp !== 'tar') { + console.warn( + "After installing the new version, if you try to run meteor within\n" + + "your current shell, you may get an error like:\n" + + "\n" + + " /usr/bin/meteor: No such file or directory\n" + + "\n" + + "If so, just run the command:\n" + + "\n" + + " $ hash -r\n" + + "\n" + + "or start a new shell.\n" + + "\n"); + } + + console.warn("Removing your current installation.\n"); copyScriptToTmp();