Move compute's script to cluster directory

This commit is contained in:
Jeremy Gardais 2018-09-14 11:03:21 +02:00
parent 0ed2f19144
commit fb40c9d1d2
1 changed files with 2 additions and 3 deletions

View File

@ -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