Update backend.docker-entrypoint.sh

This commit is contained in:
Stian Meyer
2025-10-05 23:36:46 +02:00
committed by GitHub
parent a2464fac5c
commit 2e2a554aa3

View File

@@ -9,7 +9,7 @@ log() {
}
# Copy files from agents_backup to agents if agents directory is empty
if [ -d "/app/agents" ] && [ -z "$(ls -A /app/agents 2>/dev/null)" ]; then
if [ -d "/app/agents" ] && [ -z "$(find /app/agents -mindepth 1 -not -name 'lost+found' | head -n 1)" ]; then
if [ -d "/app/agents_backup" ]; then
log "Agents directory is empty, copying from backup..."
cp -r /app/agents_backup/* /app/agents/