Lurker News

Comments (322) 118 threads

Show all comments

Showing thread 22 of 118

delano4 replies#
This is a very uncool way to install something:

    $ curl install.meteor.com | /bin/sh
geoffschmidt4 replies#
I am to blame for that. Here is our thinking on it:

- Though it "feels wrong" (definitely with you there), is it really any different from downloading an installer package and running it?
- You can just go to install.meteor.com in your browser if you want to see what the script does (or just leave off the | sh), which is arguably better than other installation mechanisms.
Curious to hear people's thoughts :)

moe1 reply#
I'm chiming in here because it may still be early enough to stop you.

Do. Not. Require. Root. Not optionally, not sometimes, not "maybe". NEVER.
Your universe is ~/.meteor. Do not even think about touching anything outside that. It's taboo.
You clearly know what you're doing otherwise, so please get this one right from the start and save yourselves a lot of headache later on (cf. npm).
Install to ~/.meteor and provide the user with a small snippet to paste to their ~/.bash_profile ("source ~/.meteor/magic.sh").

mhansen1 reply#
It would be more helpful for people reading this comment if you gave reasons beyond "It's taboo".

I'm sure you have good reasons, I just can't see them here.

moe5 replies#
Portability, robustness, flexibility and security. There's little reason to spread out a package like meteor all over /usr/local. But many reasons against doing that.

To illustrate, a few simple questions:
What if I need multiple meteor versions on the same system (different versions for different users/projects)?
How do I quickly switch between different meteor versions (often needed in fast-moving projects like this)?
How do I monkey-patch meteor to try something out and/or contribute back?
What if I absolutely must mix meteor with an unsupported version of node or other runtime dependency?
What if all my servers are SuSE Solaris95 but you only provide packages for Debian and RedHat?
How do I bundle my meteor runtime with my deployment?

Continue this thread — 5 replies

cdmoyer#
I will admit that it's my preferred way to install things like this. I can look at it and see what will happen easily.

I will also admit to disagreeing with the poster suggesting that it should all go to ~/.meteor. I kind of hate that type of install... at least when I don't have an option. I don't want to install it multiple times for different users, and I don't like "system" software in my home directory, I like to keep my user data there and back it up more regularly that /usr/local which is all things I can reinstall in case of disaster.
I guess the ideal would be to ask the user.
Comment...

  # add to $PATH
  mkdir -p "$PARENT/bin"
  rm -f "$PARENT/bin/meteor"
  ln -s "$TARGET/bin/meteor" "$PARENT/bin/meteor"
This probably needs to check it $PARENT/bin is actually in the path, and maybe tell the user that they'll need to add it.
stuffihavemade1 reply#
Please provide an npm package! In addition to the security, uninstall and versioning problems mentioned by others, not every one runs Debian and Redhat. If you provide a node package, anyone who can install node can install meteor.

edit: Any by not every one, I mean me, running ArchLinux.

ghayes#
It's become all too common these days
WiseWeasel#
That's all fine and dandy until people start MitM injecting malicious shell scripts with 'YES' as their first line...
Kiro1 reply#
Why is it uncool?
delano#
You're running a script that you've never seen on your machine with your user account. It's a dangerous habit at best. At worst you're exposed to poor code and man-in-the-middle attacks.

As someone else pointed out, it also makes versioning difficult.