Move compute's script to cluster directory
This commit is contained in:
parent
0ed2f19144
commit
fb40c9d1d2
|
@ -54,17 +54,16 @@ else
|
|||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : homedir creation — ${user_homedir_path} error."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# }}}
|
||||
# Try to set permissions on user's homedir {{{
|
||||
#command chown "${user_id}:${user_primary_group}" -R -- "${user_homedir_path}"
|
||||
#if [ "${?}" -eq 0 ]; then
|
||||
#if [ $(command chown "${user_id}:${user_primary_group}" -R -- "${user_homedir_path}") ]; then
|
||||
if command chown "${user_id}:${user_primary_group}" -R -- "${user_homedir_path}"; then
|
||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : homedir permissions — set permission for ${user_id}:${user_primary_group} ok."
|
||||
else
|
||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : homedir permissions — set permission for ${user_id}:${user_primary_group} error."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# }}}
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue