docker fix

This commit is contained in:
ebolam
2022-11-10 20:48:31 -05:00
parent f824fa2990
commit 67321974fe

View File

@@ -1,20 +1,18 @@
#!/bin/bash #!/bin/bash
cd /opt/koboldai cd /opt/koboldai
if [[ -n update ]];then if [[ -n update ]];then
git pull git pull
fi fi
#The goal here is to allow any directory in /content to be mapped to the appropriate dir in the koboldai dir #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 if [[ ! -d "/content" ]];then
mkdir /content mkdir /content
fi fi
for FILE in /content/*;do for FILE in /content/*;do
if [[ -d "/opt/koboldai/$FILE" ]];then rm -rf /opt/koboldai/$FILE
rm -rf /opt/koboldai/$FILE ln -s /content/$FILE /opt/koboldai/
fi #mount --bind /content/$FILE /opt/koboldai/$FILE
ln -s /content/$FILE /opt/koboldai/$FILE
#mount --bind /content/$FILE /opt/koboldai/$FILE
done done