File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,18 @@ usermod -u ${USER_ID} ${USER} 1>/dev/null
23
23
# but it is useful to have the full SSH server e.g. on Runpod.
24
24
# (use SCP to copy files to/from the image, etc)
25
25
if [[ -v " PUBLIC_KEY" ]] && [[ ! -d " ${HOME} /.ssh" ]]; then
26
- apt-get update
27
- apt-get install -y openssh-server
28
- pushd " $HOME "
29
- mkdir -p .ssh
30
- echo " ${PUBLIC_KEY} " > .ssh/authorized_keys
31
- chmod -R 700 .ssh
32
- popd
33
- service ssh start
26
+ apt-get update
27
+ apt-get install -y openssh-server
28
+ pushd " $HOME "
29
+ mkdir -p .ssh
30
+ echo " ${PUBLIC_KEY} " > .ssh/authorized_keys
31
+ chmod -R 700 .ssh
32
+ popd
33
+ service ssh start
34
34
fi
35
35
36
36
mkdir -p " ${INVOKEAI_ROOT} "
37
- chown --recursive ${USER} " ${INVOKEAI_ROOT} "
37
+ chown --recursive ${USER} " ${INVOKEAI_ROOT} " || true
38
38
cd " ${INVOKEAI_ROOT} "
39
39
40
40
# Run the CMD as the Container User (not root).
You can’t perform that action at this time.
0 commit comments