File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ RUN useradd -m -s /bin/bash cs61-user && \
88
88
echo "cs61-user ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/cs61-init
89
89
90
90
# create binary reporting version of dockerfile
91
- RUN (echo '#\! /bin/sh' ; echo 'echo 15 ' ) > /usr/bin/cs61-docker-version; chmod ugo+rx,u+w,go-w /usr/bin/cs61-docker-version
91
+ RUN (echo '#\! /bin/sh' ; echo 'echo 16 ' ) > /usr/bin/cs61-docker-version; chmod ugo+rx,u+w,go-w /usr/bin/cs61-docker-version
92
92
93
93
# git build arguments
94
94
ARG USER=CS61\ User
@@ -105,7 +105,7 @@ RUN git config --global user.name "${USER}" && \
105
105
echo "ls -al > /dev/null" >> ~/.bash_profile && \
106
106
echo "for i in \` mount | grep /home/cs61-user | sed 's/^.*\\ (\\ /home[^ ]*\\ ).*/\\\\ 1/'\` ; do ls -al \$ i > /dev/null; done" >> ~/.bash_profile && \
107
107
echo "# make ssh-auth.sock user-readable" >> ~/.bash_profile && \
108
- (echo "if test -f /run/host-services/ssh-auth.sock; then" ; echo " sudo chown cs61-user:cs61-user /run/host-services/ssh-auth.sock" ; echo "fi" ) >> ~/.bash_profile && \
108
+ (echo "if test -e /run/host-services/ssh-auth.sock; then" ; echo " sudo chown cs61-user:cs61-user /run/host-services/ssh-auth.sock" ; echo "fi" ) >> ~/.bash_profile && \
109
109
echo ". ~/.bashrc" >> ~/.bash_profile && \
110
110
rm -f ~/.bash_logout && \
111
111
echo "add-auto-load-safe-path ~" > ~/.gdbinit
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ RUN useradd -m -s /bin/bash cs61-user && \
120
120
echo "cs61-user ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/cs61-init
121
121
122
122
# create binary reporting version of dockerfile
123
- RUN (echo '#\!/bin/sh'; echo 'if test "x$1" = x-n; then echo 15 ; else echo 15 .arm64; fi') > /usr/bin/cs61-docker-version; chmod ugo+rx,u+w,go-w /usr/bin/cs61-docker-version
123
+ RUN (echo '#\!/bin/sh'; echo 'if test "x$1" = x-n; then echo 16 ; else echo 16 .arm64; fi') > /usr/bin/cs61-docker-version; chmod ugo+rx,u+w,go-w /usr/bin/cs61-docker-version
124
124
125
125
# git build arguments
126
126
ARG USER=CS61\ User
@@ -137,7 +137,7 @@ RUN git config --global user.name "${USER}" && \
137
137
echo "ls -al > /dev/null" >> ~/.bash_profile && \
138
138
echo "for i in \`mount | grep /home/cs61-user | sed 's/^.*\\(\\/home[^ ]*\\).*/\\\\1/'\`; do ls -al \$i > /dev/null; done" >> ~/.bash_profile && \
139
139
echo "# make ssh-auth.sock user-readable" >> ~/.bash_profile && \
140
- (echo "if test -f /run/host-services/ssh-auth.sock; then"; echo " sudo chown cs61-user:cs61-user /run/host-services/ssh-auth.sock"; echo "fi") >> ~/.bash_profile && \
140
+ (echo "if test -e /run/host-services/ssh-auth.sock; then"; echo " sudo chown cs61-user:cs61-user /run/host-services/ssh-auth.sock"; echo "fi") >> ~/.bash_profile && \
141
141
echo ". ~/.bashrc" >> ~/.bash_profile && \
142
142
echo "export PATH=/usr/x86_64-linux-gnu/bin:\$PATH" >> ~/.bashrc && \
143
143
rm -f ~/.bash_logout && \
You can’t perform that action at this time.
0 commit comments