Commit 1940e53d authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Changed user name.

parent 413894bc
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -7,22 +7,22 @@ RUN yum -y update
# Install epel repo
RUN yum -y install epel-release

# Install xrootd-server package and python bindings
RUN yum -y install xrootd-server python36-xrootd
# Install xrootd-server package
RUN yum -y install xrootd-server

# Copy authentication directives config file and set the right permissions
COPY auth_file /etc/xrootd/
RUN chown xrootd:xrootd /etc/xrootd/auth_file && \
    chmod 0644 /etc/xrootd/auth_file

# Create a new user called centos, create the home directory and set the default shell
RUN useradd -m -s /bin/bash centos
# Create a new user called tape_frontend, create the home directory and set the default shell
RUN useradd -m -s /bin/bash tape_frontend

# Switch to centos user
USER centos
# Switch to tape_frontend user
USER tape_frontend

# Set home environment variable
ENV HOME=/home/centos/
ENV HOME=/home/tape_frontend/

# Set the HOME as working directory
WORKDIR $HOME
+5 −5
Original line number Diff line number Diff line
@@ -15,14 +15,14 @@ COPY auth_file /etc/xrootd/
RUN chown xrootd:xrootd /etc/xrootd/auth_file && \
    chmod 0644 /etc/xrootd/auth_file

# Create a new user called centos, create the home directory and set the default shell
RUN useradd -m -s /bin/bash centos
# Create a new user called transfer_node, create the home directory and set the default shell
RUN useradd -m -s /bin/bash transfer_node

# Switch to centos user
USER centos
# Switch to transfer_node user
USER transfer_node

# Set home environment variable
ENV HOME=/home/centos/
ENV HOME=/home/transfer_node/

# Set the HOME as working directory
WORKDIR $HOME