mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-17 23:51:03 +08:00
* 添加Solara(光域)音乐播放器
* 📝 docs(solara): optimize project documentation and add multilingual support
- add init.sh script for automatic SESSION_SECRET generation
- rewrite and simplify main README.md content for clarity
- add new README_en.md file with full English translation
- update data.yml with multilingual descriptions (zh-Hant, ja, ms, pt-br, ru, ko)
- change app type from 'tool' to 'website' in metadata
- remove deprecated _env.sample file
- update latest/data.yml with multilingual form field labels and descriptions
- simplify docker-compose.yml and add pull_policy
- compress application logo image
---------
Co-authored-by: pooneyy <85266337+pooneyy@users.noreply.github.com>
15 lines
413 B
Bash
15 lines
413 B
Bash
#!/bin/bash
|
|
if [[ ! -f ".env" ]]; then
|
|
exit 1
|
|
fi
|
|
NEW_SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)
|
|
if grep -q "SESSION_SECRET=" .env; then
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
sed -i '' "s/SESSION_SECRET=.*/SESSION_SECRET=$NEW_SECRET/" .env
|
|
else
|
|
sed -i "s/SESSION_SECRET=.*/SESSION_SECRET=$NEW_SECRET/" .env
|
|
fi
|
|
else
|
|
echo "SESSION_SECRET=$NEW_SECRET" >> .env
|
|
fi
|