diff --git a/docker-standalone/docker-helper_new.sh b/docker-standalone/docker-helper_new.sh index 57873e27..e73f3870 100755 --- a/docker-standalone/docker-helper_new.sh +++ b/docker-standalone/docker-helper_new.sh @@ -1,20 +1,18 @@ #!/bin/bash cd /opt/koboldai if [[ -n update ]];then - git pull + git pull fi #The goal here is to allow any directory in /content to be mapped to the appropriate dir in the koboldai dir if [[ ! -d "/content" ]];then - mkdir /content + mkdir /content fi -for FILE in /content/*;do - if [[ -d "/opt/koboldai/$FILE" ]];then - rm -rf /opt/koboldai/$FILE - fi - ln -s /content/$FILE /opt/koboldai/$FILE - #mount --bind /content/$FILE /opt/koboldai/$FILE +for FILE in /content/*;do + rm -rf /opt/koboldai/$FILE + ln -s /content/$FILE /opt/koboldai/ + #mount --bind /content/$FILE /opt/koboldai/$FILE done