From 14c38d2c71ffb096bcb4ddf7c01438bd06c1dd27 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 12 Oct 2019 22:49:38 +0200 Subject: [PATCH] Fix home directory existence test --- buster/setup_scripts/setup_desktop.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buster/setup_scripts/setup_desktop.sh b/buster/setup_scripts/setup_desktop.sh index 1e7d05f..e5aa707 100755 --- a/buster/setup_scripts/setup_desktop.sh +++ b/buster/setup_scripts/setup_desktop.sh @@ -56,7 +56,9 @@ source_dir_secrets="/media/${secrets_dev}/to_usb" target_dir_secrets="/home/plom/tmp_secrets" cd "${setup_scripts_dir}" ./copy_dirtree.sh "${config_tree_prefix}/home_files" "/root" minimal root +set +e HOME_DIR_EXISTS=$([ ! -d "/home/plom" ]; echo $?) +set -e adduser --disabled-password --gecos "" plom usermod -a -G sudo plom passwd plom -- 2.30.2