fix: resolve email saving issue and implement email substring search

This commit is contained in:
2026-05-28 08:01:43 +07:00
parent 9d83a74769
commit 29308d756a
3 changed files with 33 additions and 7 deletions
+8
View File
@@ -26,6 +26,13 @@ fi
log "Navigating to ${INSTALL_DIR}"
cd "$INSTALL_DIR" || die "Directory ${INSTALL_DIR} does not exist. Run install.sh first."
# 2.1. Backup existing database
if [ -f "${INSTALL_DIR}/data/database.db" ]; then
log "Backing up existing database"
cp "${INSTALL_DIR}/data/database.db" "${INSTALL_DIR}/data/database.db.bak"
log "Database backup created at ${INSTALL_DIR}/data/database.db.bak"
fi
# 3. Configure git safe directory
log "Configuring git safe directory"
git config --global --add safe.directory "$INSTALL_DIR" || true
@@ -79,6 +86,7 @@ log "Running health check..."
sleep 5
if curl -fsSI "http://127.0.0.1:${HOST_PORT}/" >/dev/null; then
log "Update completed successfully!"
log "Service HTTP Status: $(curl -o /dev/null -s -w "%{http_code}" http://127.0.0.1:${HOST_PORT}/)"
log "Container Status:"
docker ps --filter "name=${CONTAINER_NAME}"