mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
docker fix
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user