fix: add user to docker group after docker installation

This commit is contained in:
2025-09-04 03:07:37 -03:00
parent fb3b93b00b
commit c3702cc056
4 changed files with 9 additions and 4 deletions

View File

@@ -15,8 +15,7 @@ function create_user() {
echo "[ USER ]: Adding user to groups"
sudo usermod -aG sudo $username
sudo usermod -aG www-data $username
sudo usermod -aG docker $username
echo "[ USER ]: User added to the following groupps (sudo, www-data, docker)"
echo "[ USER ]: User added to the following groups (sudo, www-data)"
echo "[ USER ]: Setting ownership of /home/$username folder"
sudo chown -R $username:$username /home/$username