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."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : homedir creation — ${user_homedir_path} error."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
# Try to set permissions on user's homedir {{{
|
# 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
|
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."
|
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : homedir permissions — set permission for ${user_id}:${user_primary_group} ok."
|
||||||
else
|
else
|
||||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : homedir permissions — set permission for ${user_id}:${user_primary_group} error."
|
[ "${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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
exit 0
|
exit 0
|
Loading…
Reference in New Issue