install: make system scripts root-finalizer aware

This commit is contained in:
Ryan Hughes
2026-06-04 18:35:01 -04:00
parent 0cfa1b66c4
commit 7ef5bc56fd
6 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
set -e
target_user=${SUDO_USER:-}
target_user=${OMARCHY_INSTALL_USER:-${SUDO_USER:-}}
if [[ -z $target_user && -n ${PKEXEC_UID:-} ]]; then
target_user=$(getent passwd "$PKEXEC_UID" | cut -d: -f1)
fi