diff --git a/linuxconf b/linuxconf index 4a122fc48219ed39228e63fd02258967233dc05e..7c7dce5a87892bd5cb656ef3b14c450309c7e49b 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 f69a6d7bdac77eba0c909c146cb551cbb9a46912..48d9adc1f8b906f1917fbcbe3a4c9180fe2e932c 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 "