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

Get platform rather than ask for it #312

Closed
bevacqua opened this issue Feb 18, 2014 · 2 comments
Closed

Get platform rather than ask for it #312

bevacqua opened this issue Feb 18, 2014 · 2 comments

Comments

@bevacqua
Copy link

Maybe using platform.js? Asking for the platform seems wrong, since people aren't ever going to want to install something for a platform other than the one the script is getting executed in

@soyuka
Copy link
Collaborator

soyuka commented Jul 4, 2014

There is a native nodejs function for this: http://nodejs.org/api/os.html#os_os_platform. But, platform here can be "ubuntu, debian, centos, redhat, systemd, amazon". Systemd is not a platform just an alternative init system.

So, this will never be implemented.

@soyuka soyuka closed this as completed Jul 4, 2014
@rlidwka
Copy link
Collaborator

rlidwka commented Jul 16, 2014

It could be possible to detect init system, see for example this:
http://unix.stackexchange.com/questions/18209/bash-detect-init-system

Could be hard, but not impossible.

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

No branches or pull requests

3 participants