Add XDG_RUNTIME_DIR to void-install
This commit is contained in:
parent
07823387dc
commit
d22ed57969
|
@ -1,13 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ZUSER=@USER@
|
ZUSER=@USER@
|
||||||
export HOME="/home/$ZUSER"
|
|
||||||
GROUPS=$(id -Gn "$ZUSER" | tr ' ' ':')
|
|
||||||
SVDIR="$HOME/sv"
|
|
||||||
ID=$(id -u $ZUSER)
|
ID=$(id -u $ZUSER)
|
||||||
|
GROUPS=$(id -Gn "$ZUSER" | tr ' ' ':')
|
||||||
|
|
||||||
|
export HOME="/home/$ZUSER"
|
||||||
|
SVDIR="$HOME/sv"
|
||||||
|
|
||||||
|
export XDG_RUNTIME_DIR="/run/user/$ID"
|
||||||
|
|
||||||
[ ! -d /run/user/$ID ] && \
|
[ ! -d /run/user/$ID ] && \
|
||||||
mkdir -p /run/user/$ZUSER && \
|
mkdir -p $XDG_RUNTIMEDIR && \
|
||||||
chown $ZUSER:$ZUSER /run/user/$ZUSER
|
chown $ZUSER:$ZUSER $XDG_RUNTIME_DIR
|
||||||
|
|
||||||
exec chpst -u "$ZUSER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $ZUSER '...'" $ZUSER
|
exec chpst -u "$ZUSER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $ZUSER '...'" $ZUSER
|
||||||
|
|
Loading…
Reference in New Issue