Fix the check of a workspace dir inside the home.
This commit is contained in:
parent
b2a4c0ec51
commit
c000941b9f
|
@ -27,10 +27,12 @@ chown ${USER}:${USER} $workspace_dir
|
||||||
chown -R ${USER}:${USER} $workspace_logdir
|
chown -R ${USER}:${USER} $workspace_logdir
|
||||||
|
|
||||||
_retval=
|
_retval=
|
||||||
/bin/rm /home/${USER}/workspace
|
if [ -d /home/${USER}/workspace ]; then
|
||||||
_retval=$?
|
rmdir /home/${USER}/workspace
|
||||||
|
_retval=$?
|
||||||
|
fi
|
||||||
if [ $_retval -ne 0 ]; then
|
if [ $_retval -ne 0 ]; then
|
||||||
echo "The user has a directory named 'workspace' inside their home directory"
|
echo "The user has a directory named 'workspace' inside their home directory and it is not empty."
|
||||||
echo "Not starting the workspace mount"
|
echo "Not starting the workspace mount"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue