Merge pull request #1447 from bestlong/fix-users-aliases
fix mistake #1427 about user aliases.
This commit is contained in:
commit
2ab11bf1af
@ -151,14 +151,23 @@ RUN chmod -R 644 /etc/cron.d
|
|||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
COPY ./aliases.sh /root/aliases.sh
|
||||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||||
|
|
||||||
|
RUN sed -i 's/\r//' /root/aliases.sh && \
|
||||||
|
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||||
|
chown laradock:laradock /home/laradock/aliases.sh && \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
|
echo "" >> ~/.bashrc
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
echo "" >> ~/.bashrc && \
|
echo "" >> ~/.bashrc
|
||||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
|
||||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
|
||||||
chown laradock:laradock /home/laradock/aliases.sh
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
|
@ -148,14 +148,23 @@ RUN chmod -R 644 /etc/cron.d
|
|||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
COPY ./aliases.sh /root/aliases.sh
|
||||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||||
|
|
||||||
|
RUN sed -i 's/\r//' /root/aliases.sh && \
|
||||||
|
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||||
|
chown laradock:laradock /home/laradock/aliases.sh && \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
|
echo "" >> ~/.bashrc
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
echo "" >> ~/.bashrc && \
|
echo "" >> ~/.bashrc
|
||||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
|
||||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
|
||||||
chown laradock:laradock /home/laradock/aliases.sh
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
|
@ -143,14 +143,23 @@ RUN chmod -R 644 /etc/cron.d
|
|||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
COPY ./aliases.sh /root/aliases.sh
|
||||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||||
|
|
||||||
|
RUN sed -i 's/\r//' /root/aliases.sh && \
|
||||||
|
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||||
|
chown laradock:laradock /home/laradock/aliases.sh && \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
|
echo "" >> ~/.bashrc
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
echo "" >> ~/.bashrc && \
|
echo "" >> ~/.bashrc
|
||||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
|
||||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
|
||||||
chown laradock:laradock /home/laradock/aliases.sh
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
|
@ -143,14 +143,23 @@ RUN chmod -R 644 /etc/cron.d
|
|||||||
#####################################
|
#####################################
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
COPY ./aliases.sh /root/aliases.sh
|
||||||
COPY ./aliases.sh /home/laradock/aliases.sh
|
COPY ./aliases.sh /home/laradock/aliases.sh
|
||||||
|
|
||||||
|
RUN sed -i 's/\r//' /root/aliases.sh && \
|
||||||
|
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
||||||
|
chown laradock:laradock /home/laradock/aliases.sh && \
|
||||||
|
echo "" >> ~/.bashrc && \
|
||||||
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
|
echo "" >> ~/.bashrc
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
echo "# Load Custom Aliases" >> ~/.bashrc && \
|
||||||
echo "source /home/laradock/aliases.sh" >> ~/.bashrc && \
|
echo "source ~/aliases.sh" >> ~/.bashrc && \
|
||||||
echo "" >> ~/.bashrc && \
|
echo "" >> ~/.bashrc
|
||||||
sed -i 's/\r//' /home/laradock/aliases.sh && \
|
|
||||||
sed -i 's/^#! \/bin\/sh/#! \/bin\/bash/' /home/laradock/aliases.sh && \
|
|
||||||
chown laradock:laradock /home/laradock/aliases.sh
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# xDebug:
|
# xDebug:
|
||||||
|
Loading…
Reference in New Issue
Block a user