From e175c57cf9f029279553e6d46c197a55b0e6e2f8 Mon Sep 17 00:00:00 2001 From: "A.K. Aunby" <149209372+akaunby@users.noreply.github.com> Date: Sun, 3 Dec 2023 20:44:39 +0900 Subject: [PATCH] Check integrity of /home Removed checks for /usr/home and added check for /home. --- backend/functions-users.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/backend/functions-users.sh b/backend/functions-users.sh index bc0116f..9556c7c 100755 --- a/backend/functions-users.sh +++ b/backend/functions-users.sh @@ -91,12 +91,17 @@ add_user() setup_users() { # First check integrity of /home && /usr/home - if [ ! -e "${FSMNT}/home" ] ; then - run_chroot_cmd "ln -s /usr/home /home" - fi - if [ ! -d "${FSMNT}/usr/home" ] ; then - run_chroot_cmd "mkdir /usr/home" - fi +# if [ ! -e "${FSMNT}/home" ] ; then +# run_chroot_cmd "ln -s /usr/home /home" +# fi +# if [ ! -d "${FSMNT}/usr/home" ] ; then +# run_chroot_cmd "mkdir /usr/home" +# fi + +# First check integrity of /home + if [ ! -d "${FSMNT}/home" ] ; then + run_chroot_cmd "mkdir /home" + fi # We are ready to start setting up the users, lets read the config while read line