Do not attempt to create solana user multiple times (#5228) (#5233)

* Do not attempt to create solana user multiple times

(cherry picked from commit 21cef2fe21)
This commit is contained in:
mergify[bot]
2019-07-22 16:32:25 -07:00
committed by Michael Vines
parent 94c757013d
commit be3a025491

View File

@ -4,6 +4,9 @@ set -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
if grep -q solana /etc/passwd ; then
echo "User solana already exists"
else
adduser solana --gecos "" --disabled-password --quiet
adduser solana sudo
adduser solana adm
@ -26,4 +29,4 @@ sudo -u solana bash -c "
StrictHostKeyChecking no
\" > config
"
fi