appstore-1panel/apps/redis/6.2.16/scripts/init.sh
github-action update-app-version 68818d37f4 Update app version [skip ci]
2024-10-07 22:26:39 +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