#!/bin/sh app_data_dir="/home/node/.n8n" if [ ! -d "$app_data_dir" ]; then mkdir -p "$app_data_dir" fi # 如果使用非 root 用户 chown -R node:node /home/node if [ "$#" -gt 0 ]; then # Got started with arguments exec "$@" else # Got started without arguments exec n8n fi