appstore-1panel/apps/dujiaoka/2.0.7/scripts/init.sh
萌森 1b69ebc73f
Some checks failed
Push custom to released / push-branch (push) Has been cancelled
准备应用 独角数卡
Signed-off-by: 萌森 <qyg2297248353@163.com>
2024-08-20 19:04:38 +08:00

16 lines
247 B
Bash

#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi