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
|
||||
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
|
||||
rm -rf /opt/koboldai/$FILE
|
||||
ln -s /content/$FILE /opt/koboldai/
|
||||
#mount --bind /content/$FILE /opt/koboldai/$FILE
|
||||
done
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user