mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 16:32:33 +01:00
Make wp-admin/update-core.php read-only
It has been reportedly replaced with original file by some security plugins.
This commit is contained in:
parent
cb7b0fd12c
commit
85d377192a
|
@ -13,6 +13,8 @@ function disableUpdatesPatch() {
|
||||||
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
|
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
|
||||||
echo "> Disabling WordPress updates..."
|
echo "> Disabling WordPress updates..."
|
||||||
patch /var/www/html/wp-admin/update-core.php </etc/wp-mods/wp-admin-update-core.patch
|
patch /var/www/html/wp-admin/update-core.php </etc/wp-mods/wp-admin-update-core.patch
|
||||||
|
echo "> Making the patched file read-only..."
|
||||||
|
chmod 0440 /var/www/html/wp-admin/update-core.php
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user