mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-04-07 17:32:31 +08:00
- add new application package for Rallly version 4.6.3 - include docker-compose.yml, config.env template, and initialization script - add multilingual README files (zh and en) and application metadata - add application logo and top-level data.yml for app store listing
10 lines
365 B
Bash
10 lines
365 B
Bash
NEW_SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)
|
|
if grep -q "SECRET_PASSWORD=" .env; then
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
sed -i '' "s/SECRET_PASSWORD=.*/SECRET_PASSWORD=$NEW_SECRET/" .env
|
|
else
|
|
sed -i "s/SECRET_PASSWORD=.*/SECRET_PASSWORD=$NEW_SECRET/" .env
|
|
fi
|
|
else
|
|
echo "SECRET_PASSWORD=$NEW_SECRET" >> .env
|
|
fi |