Skip to content

Commit

Permalink
Make sure we're in the docker group
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Metzner committed Mar 28, 2024
1 parent a7163e2 commit d754efd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .chezmoiscripts/run_once_after_04-usermod.sh.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ $sudo := "sudo " -}}
{{ if eq .chezmoi.username "root" -}}
{{ $sudo = "" -}}
{{ end -}}
{{- if (eq .chezmoi.os "linux") -}}
#!/bin/bash
{{ $sudo }}usermod -aG docker {{ .chezmoi.username }}
{{- end -}}

0 comments on commit d754efd

Please sign in to comment.