Remove wp-config.php from removal list

This commit is contained in:
xZero707 2021-02-09 21:13:14 +01:00
parent f98abbfb2e
commit 9aabedc52b

View File

@ -17,7 +17,7 @@ function deleteWordPress() {
# Instead of one-line find, we're taking a bit conservative approach and separating file and directory removal
# This is to ensure that this script never runs on unintended set of files as it's data loss risk
rm -rf "/var/www/${WEB_ROOT}/"{wp-includes,wp-admin}
rm -rf "/var/www/${WEB_ROOT}/"{.htaccess,index.php,license.txt,readme.html,wp-activate.php,wp-blog-header.php,wp-comments-post.php,wp-config-sample.php,wp-config.php,wp-cron.php,wp-links-opml.php,wp-load.php,wp-login.php,wp-mail.php,wp-settings.php,wp-signup.php,wp-trackback.php,xmlrpc.php}
rm -rf "/var/www/${WEB_ROOT}/"{.htaccess,index.php,license.txt,readme.html,wp-activate.php,wp-blog-header.php,wp-comments-post.php,wp-config-sample.php.php,wp-cron.php,wp-links-opml.php,wp-load.php,wp-login.php,wp-mail.php,wp-settings.php,wp-signup.php,wp-trackback.php,xmlrpc.php}
}
echo "> Verifying 'WordPress ${WP_VERSION}' installation..."