mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-12 12:02:40 +01:00
Improve way of disabling updates: Use diff/patch
This commit is contained in:
@@ -21,6 +21,6 @@ else
|
||||
|
||||
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
|
||||
echo "> Disabling WordPress updates..."
|
||||
cp "/etc/wp-mods" "/var/www/html" -r -T
|
||||
patch /var/www/html/wp-admin/update-core.php < /etc/wp-mods/wp-admin/update-core.php.patch
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user