Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

img_check.sh: FAIL if motd matches DigitalOcean's motd from LAMP or LEMP #121

Open
jgannondo opened this issue Nov 19, 2020 · 0 comments
Open

Comments

@jgannondo
Copy link
Contributor

jgannondo commented Nov 19, 2020

On occasion we see that a Vendor builds their app on top of our LAMP or LEMP app, but then doesn't change the MOTD.

In those cases, the motd will read something like:


Welcome to DigitalOcean's 1-Click LEMP Droplet.
To keep this Droplet secure, the UFW firewall is enabled.
All ports are BLOCKED except 22 (SSH), 80 (HTTP), and 443 (HTTPS).

In a web browser, you can view:
  * The LEMP 1-Click Quickstart guide: https://do.co/2GOFe5J#start
  * Your LEMP website: http://134.209.221.37

On the server:
  * The default web root is located at /var/www/html
  * The MySQL root password is saved in /root/.digitalocean_password
  * Certbot is preinstalled. Run it to configure HTTPS. See
    https://do.co/2GOFe5J#enable-https for more detail.

For help and more information, visit https://do.co/2GOFe5J

even though this is not the DigitalOcean LEMP app.

To resolve this issue, it may be sufficient to modify the script to check for:
Welcome to DigitalOcean's 1-Click LEMP (or similar) in the MOTD and emit a FAIL in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant