mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Add T-Pot Technical Preview
This commit is contained in:
10
preview/installer/debian/sudo-install.sh
Executable file
10
preview/installer/debian/sudo-install.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ! command -v sudo &> /dev/null
|
||||
then
|
||||
echo "sudo is not installed. Installing now..."
|
||||
su -c "apt-get -y update && apt-get -y install sudo"
|
||||
su -c "/usr/sbin/usermod -aG sudo $(whoami)"
|
||||
else
|
||||
echo "sudo is already installed."
|
||||
fi
|
Reference in New Issue
Block a user