Don't prompt users to import configuration

no ref

- 99% of users will want to import their configuration by default so just do it and let users know
- We now just print the config we're importing then continue on
This commit is contained in:
James Loh
2025-07-09 14:32:19 +10:00
parent 0a64820e78
commit 7bb2eec30b

View File

@@ -478,17 +478,13 @@ main() {
# Import configuration
echo ""
echo "Importing configuration from existing installation..."
echo ""
node "${PWD}/scripts/config-to-env.js" "${current_location}/config.production.json"
echo ""
read -rp 'Import these settings to .env? (y/n): ' confirm
if [[ "${confirm,,}" == "y" ]]; then
echo -e '\n# Configuration imported from existing Ghost install' >> "${PWD}/.env"
node "${PWD}/scripts/config-to-env.js" "${current_location}/config.production.json" >> "${PWD}/.env"
echo "✓ Configuration imported"
else
echo "Skipped configuration import"
echo "Note: You'll need to manually configure mail settings if required"
fi
echo -e "\n# Configuration imported from existing Ghost install at ${current_location}" >> "${PWD}/.env"
node "${PWD}/scripts/config-to-env.js" "${current_location}/config.production.json" >> "${PWD}/.env"
echo "✓ Configuration imported"
# Start Ghost
echo ""