SSH login prompts install of Discourse - how to bypass a reinstall?

I installed Discourse via a droplet over the weekend for, upgraded the Discourse version, ran the import script and rebuilt the app. I entered SMTP settings for the gmail server, which is what I am using for my mail server. All was good in the world.

Then I got a remote login alert from Google (it was probably just my SMTP settings being used?), and incorrectly assumed that my account had been hacked, so I changed my password .

Then I got a personal email from a user saying he couldn’t reset his password, and realized my error and tried to quickly log on to the server and edit the app.yml file to change my email settings with the new password.

However, anytime I attempt an SSH login, after my credentials are accepted, I get prompted to install Discourse. I don’t want to install it again, because I have no idea what will happen to my previous install, upgrades, imports etc.

Does anyone have any idea how I can simply SSH into my Digital Ocean account/droplet and edit the app.yml file and rebuild the app?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This is an interesting problem and luckily one that can be easily solved.

First, when you log in, you can press Ctrl+C to kill the script prompting you without it performing any actions and this should drop you back to the command line.

Second, check ~/.bashrc as it likely has a line launching the setup script still in place that can be removed to prevent this.

Thank you!

This worked perfectly!! Thanks for the help, guys!! Now all I have to figure out is how to change my SMTP password on my discourse installation lol. Luckily I think there are some docs online about it.