test for apt-get
This commit is contained in:
parent
59e3fe422d
commit
3fb4ee98f4
8
user.sh
8
user.sh
|
@ -9,6 +9,10 @@ chown "$_user": /home/"$_user"/.ssh/authorized_keys
|
|||
passwd -d "$_user"
|
||||
chage -d 0 "$_user"
|
||||
|
||||
# TODO test apt-get is used
|
||||
apt-get update && apt-get -y upgrade && apt-get -y install sudo
|
||||
if command -v apt-get ; then
|
||||
apt-get update && apt-get -y upgrade && apt-get -y install sudo
|
||||
else
|
||||
echo "Error - no package installer found."
|
||||
fi
|
||||
|
||||
# TODO ensure group sudo is allowed sudo
|
||||
|
|
Reference in New Issue