sync bootstrap.yml and bootstrap.sh
This commit is contained in:
+3
-3
@@ -76,7 +76,7 @@ system_groupadd () {
|
||||
system_useradd () {
|
||||
if user_exists "$1" "$2" ; then return 0 ; fi
|
||||
system_groupadd "${@}"
|
||||
useradd -r -u "$2" -g "$2" -s /bin/bash -m "$1"
|
||||
useradd -r -u "$2" -g "$2" -s /usr/bin/bash -m "$1"
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ] ; then
|
||||
echo "ERROR - Unable to add $1 user! ($rc)" >&2
|
||||
@@ -182,7 +182,7 @@ get_file "${GIT_REPO_sudoers_d_hpf}" "${ETC_sudoers_d_hpf}" "root:root" "u=rw,go
|
||||
create_directory "${SKEL_profile_d}" "root:root" "u=rwx,go="
|
||||
|
||||
# Get /etc/skel/.profile.d/ansible-venv.sh
|
||||
get_file "${GIT_REPO_SKEL_ansible_venv_sh}" "${SKEL_ansible_venv_sh}" "root:root" "u=rwx,go="
|
||||
get_file "${GIT_REPO_SKEL_ansible_venv_sh}" "${SKEL_ansible_venv_sh}" "root:root" "u=rw,go="
|
||||
|
||||
# Get /etc/skel/.profile
|
||||
get_file "${GIT_REPO_SKEL_profile}" "${SKEL_profile}" "root:root" "u=rw,go=r"
|
||||
@@ -203,7 +203,7 @@ as_hpf_ans "if [ ! -d \"${HPF_ANS_ansible_venv}\" ] ; then virtualenv \"${HPF_AN
|
||||
# Make sure pip is up to date
|
||||
as_hpf_ans "pip install --upgrade pip"
|
||||
|
||||
# Make sure ansible is installed
|
||||
# Make sure ansible is up to date
|
||||
as_hpf_ans "pip install --upgrade ansible"
|
||||
|
||||
# Make sure /home/hpf-ans/bin exists
|
||||
|
||||
Reference in New Issue
Block a user