Updated Main README.md of Repo to reflect addition of new scripts.
This commit is contained in:
1 parent
6444a814b0
commit
83c3b620e9
7 files changed
+994
-288
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#! /usr/bin/env bash
|
||||
# Tool zum Schnellen prüfen mehrerer WordPress-Installationen
|
||||
# Maintainer: peignerpausz
|
||||
|
||||
printf "Bitte Namen der zu prüfenden Instanzen einsetzen"
|
||||
read wordpresses
|
||||
printf '🚀 WP-Checks für folgende Instanzen %s 🛠️ \n' "$wordpresses"
|
||||
found_errors=0
|
||||
for a in $wordpresses; do
|
||||
count=$(wp core verify-checksums --path="$wordpresses" | grep -v "Success" | wc -l)
|
||||
count=$(wp plugin verify-checksums --all --path="$wordpresses" | grep -v "Success" | wc -l)
|
||||
if [ "$count" -gt 0 ]; then
|
||||
printf "❌ WordPress unter %s muss geprüft werden!\n" "$wordpresses"
|
||||
found_errors=1
|
||||
fi
|
||||
done
|
||||
if [ "$found_errors" -eq 0 ]; then
|
||||
printf "✅ All systems green.\n"
|
||||
fi
|
||||
Reference in new issue
Block a user