Improve way of disabling updates: Use diff/patch

This commit is contained in:
xZero707
2020-10-04 19:33:34 +02:00
parent 3c26062847
commit da253b5138
3 changed files with 15 additions and 925 deletions

View File

@@ -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