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

16 lines
274 B
Bash

#!/bin/bash
if [ -f .env ]; then
source .env
if [ ! -d $SEAWEEDFS_ROOT_PATH/prometheus ]; then
mkdir -p $SEAWEEDFS_ROOT_PATH/prometheus
fi
cp -rn ./config/* $SEAWEEDFS_ROOT_PATH/prometheus/
echo "Check Finish."
else
echo "Error: .env file not found."
fi