mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
d541a14826
- Currently theme uploads delete the existing theme before copying the new files into place - If something goes wrong with the delete action, you will end up in a bad state - Some or all of the files may be deleted, but now Ghost won't try to put the new theme in place, instead returning an error - This leaves you with an invalid active theme and a broken site - Unlike delete, move is a one-hit operation that succeeds or fails, there moving a theme is safer than deleting - This updated code moves the old theme to a folder with the name [theme-name]-[uuid] before copying the new theme into place - Even if this fails, the files should not be gone - There's a cleanup operation to remove the theme backup at the end, but we don't care too much if this fails |
||
---|---|---|
.. | ||
actions_spec.js | ||
config_spec.js | ||
db_spec.js | ||
email_preview_spec.js | ||
emails_spec.js | ||
images_spec.js | ||
integrations_spec.js | ||
invites_spec.js | ||
key_authentication_spec.js | ||
labels_spec.js | ||
mail_spec.js | ||
members_spec.js | ||
notifications_spec.js | ||
oembed_spec.js | ||
pages_spec.js | ||
posts_spec.js | ||
roles_spec.js | ||
settings_spec.js | ||
slugs_spec.js | ||
tags_spec.js | ||
themes_spec.js | ||
users_spec.js | ||
utils.js | ||
webhooks_spec.js |