1
0
mirror of https://gitlink.org.cn/pooneyy/1Panel-Appstore.git synced 2026-04-24 13:01:44 +08:00
1Panel-Appstore/apps/n8n/2.17.0/scripts/init.sh

17 lines
204 B
Bash

#!/bin/bash
if [ -f .env ]; then
source .env
DATA_DIR="$N8N_ROOT_PATH/data"
mkdir -p "$DATA_DIR"
chmod -R 777 "$DATA_DIR"
echo "Check Finish."
else
echo "Error: .env file not found."
fi