spacing fixes
This commit is contained in:
parent
4b16984f35
commit
0031df019d
1 changed files with 8 additions and 8 deletions
16
stack.sh
16
stack.sh
|
@ -49,16 +49,16 @@ fi
|
||||||
# sudo privileges and runs as that user.
|
# sudo privileges and runs as that user.
|
||||||
|
|
||||||
if [[ $EUID -eq 0 ]]; then
|
if [[ $EUID -eq 0 ]]; then
|
||||||
echo "You are running this script as root."
|
echo "You are running this script as root."
|
||||||
|
|
||||||
# since this script runs as a normal user, we need to give that user
|
# since this script runs as a normal user, we need to give that user
|
||||||
# ability to run sudo
|
# ability to run sudo
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y sudo
|
apt-get install -y sudo
|
||||||
|
|
||||||
if ! getent passwd | grep -q stack; then
|
if ! getent passwd | grep -q stack; then
|
||||||
echo "Creating a user called stack"
|
echo "Creating a user called stack"
|
||||||
useradd -U -G sudo -s /bin/bash -m stack
|
useradd -U -G sudo -s /bin/bash -m stack
|
||||||
fi
|
fi
|
||||||
echo "Giving stack user passwordless sudo priviledges"
|
echo "Giving stack user passwordless sudo priviledges"
|
||||||
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
|
Loading…
Reference in a new issue