From: Christian Heller Date: Sat, 12 Oct 2019 20:49:38 +0000 (+0200) Subject: Fix home directory existence test X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/edit?a=commitdiff_plain;h=14c38d2c71ffb096bcb4ddf7c01438bd06c1dd27;p=config Fix home directory existence test --- 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