mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-29 12:04:59 +08:00
- add new config.env file with detailed environment variables for app, storage, email, and telemetry settings - expand data.yml form fields with multi-language support, database, and redis service configurations - refactor docker-compose.yml to use 1panel network, environment variables, and config.env file - add init.sh script for generating APP_SECRET - update README files with detailed configuration instructions and feature descriptions - enhance data.yml metadata with multi-language descriptions and architecture support - update application logo
10 lines
335 B
Bash
10 lines
335 B
Bash
NEW_SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)
|
|
if grep -q "APP_SECRET=" .env; then
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
sed -i '' "s/APP_SECRET=.*/APP_SECRET=$NEW_SECRET/" .env
|
|
else
|
|
sed -i "s/APP_SECRET=.*/APP_SECRET=$NEW_SECRET/" .env
|
|
fi
|
|
else
|
|
echo "APP_SECRET=$NEW_SECRET" >> .env
|
|
fi |