mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
22 lines
516 B
Bash
Executable File
22 lines
516 B
Bash
Executable File
#!/bin/bash
|
|
cd /opt/koboldai
|
|
if [[ -n update ]];then
|
|
git pull --recurse-submodules
|
|
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
|
|
fi
|
|
|
|
for FILE in /content/*
|
|
do
|
|
FILENAME="$(basename $FILE)"
|
|
rm -rf /opt/koboldai/$FILENAME
|
|
ln -s $FILE /opt/koboldai/
|
|
done
|
|
|
|
|
|
#Previous parameters are now env vars in the docker container so they can be overwritten as desired
|
|
PYTHONUNBUFFERED=1 ./play.sh
|