{"id":20286393,"url":"https://github.com/antoonline/bash-script-wordpress-docker-verify-checksums","last_synced_at":"2026-04-10T12:31:10.629Z","repository":{"id":154457178,"uuid":"632279895","full_name":"AntoOnline/bash-script-wordpress-docker-verify-checksums","owner":"AntoOnline","description":"This script checks the integrity of WordPress installations running in Docker containers by verifying their checksums using wp-cli. It identifies containers running WordPress instances, installs wp-cli if necessary, and runs the wp core verify-checksums command. ","archived":false,"fork":false,"pushed_at":"2023-05-21T00:52:35.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T04:12:31.053Z","etag":null,"topics":["docker","malware","slack","ubuntu","verify-checksums","wordpress","wp-cli"],"latest_commit_sha":null,"homepage":"https://anto.online","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoOnline.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T04:55:00.000Z","updated_at":"2023-04-29T20:33:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb861fac-a32b-4fa6-9ef6-7862aafed474","html_url":"https://github.com/AntoOnline/bash-script-wordpress-docker-verify-checksums","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntoOnline/bash-script-wordpress-docker-verify-checksums","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-verify-checksums","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-verify-checksums/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-verify-checksums/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-verify-checksums/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoOnline","download_url":"https://codeload.github.com/AntoOnline/bash-script-wordpress-docker-verify-checksums/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-verify-checksums/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31642662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","malware","slack","ubuntu","verify-checksums","wordpress","wp-cli"],"created_at":"2024-11-14T14:33:55.851Z","updated_at":"2026-04-10T12:31:10.596Z","avatar_url":"https://github.com/AntoOnline.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Docker Verify Checksums\n\nThis script, `wordpress-docker-verify-checksums.sh`, checks the integrity of WordPress core files within Docker containers running the WordPress image. It verifies the checksums of the files using `wp-cli`, and sends notifications to a specified Slack channel if any issues are detected or if `wp-cli` is not installed in the container.\n\n## Prerequisites\n\n- Docker\n- Docker containers running the WordPress image\n\n## Usage\n\n```bash\n./wordpress-docker-verify-checksums.sh --slack-webhook-url \u003cwebhook-url\u003e [--wordpress-image-name \u003cimage-name\u003e] [--install-wp-cli \u003cyes|no\u003e]\n```\n\nOptions:\n\n- `--slack-webhook-url`: The Slack webhook URL for the channel you want to receive notifications in (required).\n- `--wordpress-image-name`: The name of the WordPress image to check (default: \"wordpress\").\n- `--install-wp-cli`: Specify whether to install `wp-cli` if not installed in the container. Accepted values are \"yes\" or \"no\" (default: \"yes\").\n\nExample:\n\n```bash\n./wordpress-docker-verify-checksums.sh --slack-webhook-url \u003cwebhook-url\u003e --wordpress-image-name custom-wordpress --install-wp-cli no\n```\n\n## How It Works\n\nThe script performs the following steps:\n\n1. Parses the command line arguments to get the Slack webhook URL, WordPress image name, and `INSTALL_WP_CLI` value.\n2. Checks if the Slack webhook URL is set and enables Slack notifications accordingly.\n3. Checks if `wp-cli` is installed in the system. If not, and `INSTALL_WP_CLI` is set to \"yes\", it downloads and installs `wp-cli`.\n4. Updates `wp-cli` to the latest version.\n5. Retrieves the names of all Docker containers running the specified WordPress image (or default \"wordpress\" if not provided).\n6. Loops through each container and performs the following checks:\n   - Verifies the integrity of the WordPress core files using `wp-cli`.\n   - Sends a Slack notification if the checksum verification fails (and Slack notifications are enabled).\n7. Completes the loop and finishes the script execution.\n\n## Want to connect?\n\nFeel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.\n\nOr just visit my [website](https://anto.online) to see what I do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fbash-script-wordpress-docker-verify-checksums","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoonline%2Fbash-script-wordpress-docker-verify-checksums","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fbash-script-wordpress-docker-verify-checksums/lists"}