Modeldir Fix

This commit is contained in:
Henk 2023-02-27 17:46:33 +01:00
parent c27faf56e6
commit 0e06fc371f
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ if [[ ! -v KOBOLDAI_DATADIR ]];then
fi fi
mkdir $KOBOLDAI_DATADIR/stories mkdir $KOBOLDAI_DATADIR/stories
if [[ ! -v KOBOLDAI_MODELDIR ]];then if [[ -v KOBOLDAI_MODELDIR ]];then
mkdir $KOBOLDAI_MODELDIR/models mkdir $KOBOLDAI_MODELDIR/models
fi fi
mkdir $KOBOLDAI_DATADIR/settings mkdir $KOBOLDAI_DATADIR/settings
@ -28,7 +28,7 @@ rm -rf userscripts/
rm softprompts rm softprompts
rm -rf softprompts/ rm -rf softprompts/
if [[ ! -v KOBOLDAI_MODELDIR ]];then if [[ -v KOBOLDAI_MODELDIR ]];then
rm models rm models
rm -rf models/ rm -rf models/
#rm cache #rm cache
@ -39,7 +39,7 @@ ln -s $KOBOLDAI_DATADIR/stories/ stories
ln -s $KOBOLDAI_DATADIR/settings/ settings ln -s $KOBOLDAI_DATADIR/settings/ settings
ln -s $KOBOLDAI_DATADIR/softprompts/ softprompts ln -s $KOBOLDAI_DATADIR/softprompts/ softprompts
ln -s $KOBOLDAI_DATADIR/userscripts/ userscripts ln -s $KOBOLDAI_DATADIR/userscripts/ userscripts
if [[ ! -v KOBOLDAI_MODELDIR ]];then if [[ -v KOBOLDAI_MODELDIR ]];then
ln -s $KOBOLDAI_MODELDIR/models/ models ln -s $KOBOLDAI_MODELDIR/models/ models
#ln -s $KOBOLDAI_MODELDIR/cache/ cache #ln -s $KOBOLDAI_MODELDIR/cache/ cache
fi fi