Skip to content
Snippets Groups Projects
Commit 95c42769 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

update

parent 5688f8ac
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,5 @@
{% endfor %}
{% for host in nodelist|unique %}
{{ host.name }} {{ host.rsa }}
{{ host.ip }} {{ host.rsa }}
{{ host.ip }} {{ host.name }} {{ host.rsa }}
{% endfor %}
......@@ -8,7 +8,7 @@ for user in ${user_list[*]}; do
uid=$(id -u ${user})
gid=$(id -g ${user})
user_home=${CVL_HOME}/${user}
if [ ! -d ${user_home} ]; then
if [[ ! -d ${user_home} && ${uid} -gt 1000 ]]; then
mkdir -p ${user_home}
cp -r /etc/skel/* ${user_home}
chown -R ${uid}:${gid} ${user_home}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment