mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-01-17 17:47:57 +08:00
6c18fe434d
Signed-off-by: 萌森 <qyg2297248353@163.com>
19 lines
320 B
Bash
19 lines
320 B
Bash
#!/bin/bash
|
|
|
|
if [ -f .env ]; then
|
|
source .env
|
|
|
|
mkdir -p "$REDIS_ROOT_PATH"
|
|
|
|
mkdir -p "$REDIS_ROOT_PATH/data"
|
|
mkdir -p "$REDIS_ROOT_PATH/config"
|
|
mkdir -p "$REDIS_ROOT_PATH/logs"
|
|
|
|
cp ./config/redis.conf "$REDIS_ROOT_PATH/config/redis.conf"
|
|
|
|
echo "Check Finish."
|
|
|
|
else
|
|
echo "Error: .env file not found."
|
|
fi
|