Migrate: copy default memory
This commit is contained in:
@@ -14,6 +14,12 @@ RUN npm ci --unsafe-perm
|
||||
# Change line break
|
||||
find /app -type f -exec sed -i 's/\r$//' {} \;
|
||||
|
||||
# Copy default memory
|
||||
if [ ! -s /app/memory.db ]; then \
|
||||
cp /app/memory.default.db /app/memory.db; \
|
||||
rm -f /app/memory.default.db; \
|
||||
fi
|
||||
|
||||
# Create config.json
|
||||
cat <<EOF > /app/config.json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user