Skip to content

Commit 3a0ebc8

Browse files
committed
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
1 parent b55dee8 commit 3a0ebc8

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

scripts/migrate.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -478,17 +478,13 @@ main() {
478478
# Import configuration
479479
echo ""
480480
echo "Importing configuration from existing installation..."
481+
echo ""
481482
node "${PWD}/scripts/config-to-env.js" "${current_location}/config.production.json"
483+
echo ""
482484

483-
read -rp 'Import these settings to .env? (y/n): ' confirm
484-
if [[ "${confirm,,}" == "y" ]]; then
485-
echo -e '\n# Configuration imported from existing Ghost install' >> "${PWD}/.env"
486-
node "${PWD}/scripts/config-to-env.js" "${current_location}/config.production.json" >> "${PWD}/.env"
487-
echo "✓ Configuration imported"
488-
else
489-
echo "Skipped configuration import"
490-
echo "Note: You'll need to manually configure mail settings if required"
491-
fi
485+
echo -e "\n# Configuration imported from existing Ghost install at ${current_location}" >> "${PWD}/.env"
486+
node "${PWD}/scripts/config-to-env.js" "${current_location}/config.production.json" >> "${PWD}/.env"
487+
echo "✓ Configuration imported"
492488

493489
# Start Ghost
494490
echo ""

0 commit comments

Comments
 (0)