SillyTavern/docker/docker-entrypoint.sh

14 lines
338 B
Bash
Raw Normal View History

2023-07-20 19:32:15 +02:00
#!/bin/sh
# Initialize missing user files
IFS="," RESOURCES="characters,groups,group chats,chats,User Avatars,worlds,settings.json"
for R in $RESOURCES; do
if [ ! -e "config/$R" ]; then
echo "Resource not found, copying from defaults: $R"
cp -r "public/$R.default" "config/$R"
fi
done
# Start the server
exec node server.js