mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 04:16:52 +01:00
Remove wp-config.php from removal list
This commit is contained in:
parent
f98abbfb2e
commit
9aabedc52b
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue
Block a user