From 9aabedc52b0d4cc04e6b4ead9e5f10b223f5c2e8 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Tue, 9 Feb 2021 21:13:14 +0100 Subject: [PATCH] Remove wp-config.php from removal list --- rootfs/etc/cont-init.d/10-init-wordpress | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/cont-init.d/10-init-wordpress b/rootfs/etc/cont-init.d/10-init-wordpress index 86fc825..39098a6 100644 --- a/rootfs/etc/cont-init.d/10-init-wordpress +++ b/rootfs/etc/cont-init.d/10-init-wordpress @@ -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..."