-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unnecessarily using sudo when logging as root #1331
base: master
Are you sure you want to change the base?
Conversation
Will merge - tho willing to help me out? Is there a way to get this script to work in non-root shells? I don't want to assume I am/only root. |
#debian/ubuntu
if [ $(id -u) -ne 0 ]; then
SUDO='sudo'
else
SUDO=''
fi
${SUDO} apt-get install sudo -y
${SUDO} apt-get update -y
${SUDO} apt-get install curl git git-core screen -y
#fedora/openSUSE
${SUDO} yum check-update -y
${SUDO} yum install curl git git-core screen -y
|
Oh forgot about this. I need to test it against the various hosts but haven't had time. I'm really really really really dumb when it comes to CLI so I'm scared about stuff. I've gotten GUN to run on $0.83/mo shared hosts. However, some more expensive ones (not listed) $2/mo it won't let me install node or yum/apt-get, I'm not root, if I try to install NodeJS from scratch/make (not prebuilt) it takes hours & the hosts kills it. I think that machine/host I need to give up on, but I am trying to get it to work with most any shared/cpanel/would-be-PHP type hosts. Are the sudos necessary there? Or is apt-get/yum disallowed no matter what? Or? |
It might be worth rethinking this, the Maybe just a section before each os to simplify it?
|
In README tho, most users are Mac/Windows no? apt-get doesn't work either those places. |
yeah the
|
No description provided.