summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-09 20:23:30 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-09 20:23:30 -0300
commitd6905469889a4168ff5953bef675c997a130c647 (patch)
tree9fc8f9c0ed9dafa9263df6dfdbb675d9954c1c0f
parent27160da056ff397f37ff1bd7bf099d07935d598d (diff)
Replaced newgrp with sudo su $USER
-rwxr-xr-xdocker.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker.sh b/docker.sh
index c33bf2b..c22291d 100755
--- a/docker.sh
+++ b/docker.sh
@@ -25,4 +25,4 @@ sudo usermod -G docker $USER
sudo curl -L https://github.com/docker/compose/releases/download/v2.15.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
-exec sg docker "newgrp `id -gn`"
+sudo su $USER