From 2ced68db3300af45b77a4da7873906316754c7aa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Jun 2017 20:22:08 +0100 Subject: [PATCH] Home directory --- src/freedombone-app-turtl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-turtl b/src/freedombone-app-turtl index eb5b330d..27a1bde7 100755 --- a/src/freedombone-app-turtl +++ b/src/freedombone-app-turtl @@ -574,8 +574,8 @@ __ENDCONFIG__ chown -R turtl:turtl $TURTL_BASE_DIR fi adduser --disabled-login --home=$TURTL_BASE_DIR --gecos 'turtl' turtl - if [ ! -d /home/turtl ]; then - echo $"/home/turtl directory not created" + if [ ! -d $TURTL_BASE_DIR ]; then + echo $"$TURTL_BASE_DIR directory not created" exit 263493 fi