1
0
mirror of https://github.com/pooneyy/1Panel-Appstore.git synced 2026-03-18 05:41:03 +08:00
pooneyy 50c440bd8c
feat(phpLDAPadmin): add phpLDAPadmin application
- 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
2026-01-25 21:56:56 +08:00

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