1
0
Fork 0
dotfiles/runsvdir-USER
2023-12-21 10:17:55 +01:00

9 lines
182 B
Bash

#!/bin/sh
export USER="<USERNAME>"
export HOME="/home/<USERNAME>"
groups="$(id -Gn "$USER" | tr ' ' ':')"
svdir="$HOME/.local/sv/"
exec chpst -u "$USER:$groups" runsvdir "$svdir"