home · contact · privacy
Fix home directory existence test
authorChristian Heller <c.heller@plomlompom.de>
Sat, 12 Oct 2019 20:49:38 +0000 (22:49 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 12 Oct 2019 20:49:38 +0000 (22:49 +0200)
buster/setup_scripts/setup_desktop.sh

index 1e7d05fa1244b55a7bfeb9160737334993badb87..e5aa7078fece68e11d8eb9c59214dbe03d32ff3a 100755 (executable)
@@ -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