From 646bea21c7da07c33a7aac0e22df8d0c31b900b2 Mon Sep 17 00:00:00 2001 From: Lord_Ralex Date: Sun, 31 Jan 2016 17:16:47 -0600 Subject: [PATCH] Fix path issues due to removal of base prompt --- lib/scripts/create_user.sh | 10 +++++----- lib/scripts/remove_user.sh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/scripts/create_user.sh b/lib/scripts/create_user.sh index 677c01c..c478db3 100755 --- a/lib/scripts/create_user.sh +++ b/lib/scripts/create_user.sh @@ -1,10 +1,10 @@ #!/bin/bash -useradd -m -d $1$2 -s /bin/false -p $(openssl passwd -1 $3) $2 +useradd -m -d $1/$2 -s /bin/false -p $(openssl passwd -1 $3) $2 usermod -G scalesuser $2 -chown root:root $1$2 -chmod 755 $1$2 +chown root:root $1/$2 +chmod 755 $1/$2 -mkdir $1$2/public $1$2/backups -chown $2:scalesuser $1$2/* \ No newline at end of file +mkdir $1/$2/public $1/$2/backups +chown $2:scalesuser $1/$2/* \ No newline at end of file diff --git a/lib/scripts/remove_user.sh b/lib/scripts/remove_user.sh index a979034..3814710 100755 --- a/lib/scripts/remove_user.sh +++ b/lib/scripts/remove_user.sh @@ -1,4 +1,4 @@ #!/bin/bash userdel -r $2 -rm -rf $1$2 \ No newline at end of file +rm -rf $1/$2 \ No newline at end of file