Change up user matching stuff

This commit is contained in:
swagg boi 2023-09-11 21:36:12 -04:00
parent f817cf163b
commit 34c7cc95da

View file

@ -82,7 +82,7 @@ apt-get -y install git libsecret-1-0 libsecret-1-dev build-essential vim \
elpa-dockerfile-mode elpa-web-mode elpa-yaml-mode docker-compose- elpa-dockerfile-mode elpa-web-mode elpa-yaml-mode docker-compose-
# Need this for rootless podman # Need this for rootless podman
if grep -q '^daniel' /etc/shadow; then if grep -q '^daniel:' /etc/shadow; then
loginctl enable-linger daniel loginctl enable-linger daniel
fi fi
@ -122,7 +122,7 @@ if [ "$(systemctl is-active display-manager)" = 'inactive' ]; then
fi fi
# User-specific DESKTOP stuff # User-specific DESKTOP stuff
if grep -q '^daniel' /etc/shadow; then if who -u | grep '\(:0\)$' | grep -q '^daniel'; then
# PipeWire # PipeWire
apt-get -y install wireplumber libspa-0.2-bluetooth \ apt-get -y install wireplumber libspa-0.2-bluetooth \
pipewire-media-session- pipewire-media-session-