appstore-1panel/apps/stream-rec/0.6.9/scripts/upgrade.sh

16 lines
247 B
Bash
Raw Normal View History

#!/bin/bash
if [ -f .env ]; then
source .env
2024-07-27 18:10:05 +08:00
# 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