From 280b0e772b775738717d9f57a0c70f97b71714c3 Mon Sep 17 00:00:00 2001 From: Recolic <git@me.recolic.net> Date: Wed, 2 Apr 2025 18:51:03 -0700 Subject: [PATCH] .bugfix --- linuxconf | 2 +- test.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/linuxconf b/linuxconf index 4a122fc..7c7dce5 100755 --- a/linuxconf +++ b/linuxconf @@ -261,7 +261,7 @@ elif [[ "$subcommand" = _startup ]]; then elif [[ "$subcommand" = _startup_all ]]; then # systemd should call this service as root, and it will spawn subprocess for all users with sudo [[ "$(whoami)" != root ]] && lcf_die "$0 _startup_all started as non-root. Exit because sudo might fail." - local ar_uname=($(lci_state_file_list /etc/linuxconf.conf init_done)) || lcf_die "List all initialized users: lci_state_file_list failed" + ar_uname=($(lci_state_file_list /etc/linuxconf.conf init_done)) || lcf_die "List all initialized users: lci_state_file_list failed" for uname in "${ar_uname[@]}"; do lcf_echo2 "Spawn subprocess '$0 _startup' as user $uname..." sudo -u "$uname" "$0" _startup diff --git a/test.sh b/test.sh index f69a6d7..48d9adc 100644 --- a/test.sh +++ b/test.sh @@ -1,9 +1,9 @@ set -e tar -cvzf /tmp/test.tgz examples -netpush /tmp/test.tgz +netpush /tmp/test.tgz linuxconf echo " -TODO: +TEST >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> rm /mnt/fsdisk/svm/vm/archtest/ -r pgkill archtest @@ -13,4 +13,6 @@ sudo su cd / curl https://recolic.cc/tmp/test.tgz | tar xvzf - +cd examples/archlinux-gnome/ +./linuxconf.wrapper register masterconf.sh " -- GitLab