appstore-1panel/apps/discourse/3.3.0/scripts/upgrade.sh

11 lines
238 B
Bash
Raw Normal View History

2024-08-01 16:35:48 +08:00
#!/bin/bash
if [[ -f ./.env ]]; then
if grep -q "DISCOURSE_SKIP_BOOTSTRAP" ./.env; then
echo "DISCOURSE_SKIP_BOOTSTRAP 已存在"
else
echo 'DISCOURSE_SKIP_BOOTSTRAP="yes"' >> ./.env
fi
else
echo ".env 文件不存在"
2024-08-01 18:24:11 +08:00
fi