Skip to content

Commit d192f93

Browse files
authored
set default shell as bash (#419)
* set default shell as bash * doin it for uf as well
1 parent 405a421 commit d192f93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

splunk/common-files/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ COPY [ "splunk/common-files/updateetc.sh", "/sbin/" ]
5555

5656
# Setup users and groups
5757
RUN groupadd -r -g ${GID} ${SPLUNK_GROUP} \
58-
&& useradd -r -m -u ${UID} -g ${GID} ${SPLUNK_USER} \
58+
&& useradd -r -m -u ${UID} -g ${GID} -s /bin/bash ${SPLUNK_USER} \
5959
&& chmod 755 /sbin/updateetc.sh
6060

6161
COPY --from=package --chown=splunk:splunk /minimal /opt
@@ -98,7 +98,7 @@ COPY splunk-ansible ${SPLUNK_ANSIBLE_HOME}
9898
RUN sed -i -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL\nansible ALL=(splunk)NOPASSWD:ALL/g' /etc/sudoers \
9999
&& echo 'Create the ansible user/group' \
100100
&& groupadd -r ${ANSIBLE_GROUP} \
101-
&& useradd -r -m -g ${ANSIBLE_GROUP} ${ANSIBLE_USER} \
101+
&& useradd -r -m -g ${ANSIBLE_GROUP} -s /bin/bash ${ANSIBLE_USER} \
102102
&& usermod -aG sudo ${ANSIBLE_USER} \
103103
&& usermod -aG ${ANSIBLE_GROUP} ${SPLUNK_USER} \
104104
&& echo 'Container Artifact Directory is a place for all artifacts and logs that are generated by the provisioning process. The directory is owned by the user "ansible".' \

uf/common-files/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ COPY [ "uf/common-files/updateetc.sh", "/sbin/"]
5151

5252
# Setup users and groups
5353
RUN groupadd -r -g ${GID} ${SPLUNK_GROUP} \
54-
&& useradd -r -m -u ${UID} -g ${GID} ${SPLUNK_USER} \
54+
&& useradd -r -m -u ${UID} -g ${GID} -s /bin/bash ${SPLUNK_USER} \
5555
&& chmod 755 /sbin/updateetc.sh
5656

5757
# Copy files from package
@@ -91,7 +91,7 @@ USER root
9191
RUN sed -i -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL\nansible ALL=(splunk)NOPASSWD:ALL/g' /etc/sudoers \
9292
&& echo 'Create the ansible user/group' \
9393
&& groupadd -r ${ANSIBLE_GROUP} \
94-
&& useradd -r -m -g ${ANSIBLE_GROUP} ${ANSIBLE_USER} \
94+
&& useradd -r -m -g ${ANSIBLE_GROUP} -s /bin/bash ${ANSIBLE_USER} \
9595
&& usermod -aG sudo ${ANSIBLE_USER} \
9696
&& usermod -aG ${ANSIBLE_GROUP} ${SPLUNK_USER} \
9797
&& echo 'Container Artifact Directory is a place for all artifacts and logs that are generated by the provisioning process. The directory is owned by the user "ansible".' \

0 commit comments

Comments
 (0)