Created
May 29, 2023 19:11
-
-
Save michaelmrose/4569f0e80257120ee7c30c199e6ec8e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export USER="michael" | |
export HOME="/usr/home/michael" | |
export DISPLAY=:0 | |
export DISPLAY=$(who|grep michael| choose 4|cut -c 2-3) | |
groups="$(id -Gn "$USER" | tr ' ' ':')" | |
svdir="$HOME/service/enabled" | |
exec chpst -u "$USER:$groups" runsvdir "$svdir" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment