Files
appstore-1panel/appstore/redis/7.4.5/scripts/init.sh
T
QYG2297248353 a97fe974b5
Renovate / renovate (push) Has been cancelled
Push custom to released / push-branch (push) Has been cancelled
Process Apps and Commit Changes / process (push) Has been cancelled
Processed apps directory via GitHub Actions
2025-07-08 03:51:24 +00:00

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