mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-18 05:41:03 +08:00
- add version-specific data.yml with form fields for HTTP port, LDAP server, LDAP port, LDAP baseDN, admin credentials, and timezone configuration - add docker-compose.yml for container deployment with environment variable mapping and volume mounts - add init.sh script for directory creation and APP_KEY generation - add README.md and README_en.md with product introduction and feature descriptions - add root data.yml with application metadata, tags, and architecture support - add logo.png
12 lines
354 B
Bash
12 lines
354 B
Bash
mkdir -p logs sessions
|
|
chmod -R 777 logs sessions
|
|
APP_KEY=$(echo "base64:$(head -c 32 /dev/urandom | base64)")
|
|
if grep -q "APP_KEY=" .env; then
|
|
if [[ "$(uname)" == "Darwin" ]]; then
|
|
sed -i '' "s/APP_KEY=.*/APP_KEY=$APP_KEY/" .env
|
|
else
|
|
sed -i "s/APP_KEY=.*/APP_KEY=$APP_KEY/" .env
|
|
fi
|
|
else
|
|
echo "APP_KEY=$APP_KEY" >> .env
|
|
fi |