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
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