You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.8 KiB

4 years ago
  1. +++
  2. title = "Upgrade Script"
  3. description = "Check for After Dark updates and upgrade effortlessly."
  4. categories = ["core"]
  5. tags = ["updating", "installation", "scripts"]
  6. features = ["code highlighter", "related content", "snippets"]
  7. [[copyright]]
  8. owner = "Josh Habdas"
  9. date = "2019"
  10. license = "agpl-3.0-or-later"
  11. +++
  12. To check for updates and automatically upgrade After Dark to the latest version simply run the upgrade script from your site directory:
  13. ```sh
  14. cd flying toasters && \
  15. ./themes/after-dark/bin/upgrade
  16. ```
  17. If you're already using the latest version the script will let you know:
  18. {{< hackcss-alert type="info" >}}
  19. <samp class="muted">Did not upgrade after-dark. Already using latest version.</samp>
  20. {{< /hackcss-alert >}}
  21. If an update is available the script will download and install it automatically:
  22. {{< hackcss-alert type="info" >}}
  23. <samp class="muted">Starting upgrade from 6.7.6 to 6.8.0 ...<br>
  24. Version 6.8.0 downloaded to themes/after-dark<br>
  25. Stopping help server if running ...</br>
  26. Generating help documentation ...<br>
  27. Upgrade complete! Please see CHANGELOG.md for changes.</samp>
  28. {{< /hackcss-alert >}}
  29. If current version can't be detected the script will prompt you:
  30. {{< hackcss-alert type="info" >}}
  31. <samp class="muted">Cannot detect version. Upgrade after-dark anyway (y/n)? y<br>
  32. Starting upgrade from unknown version to 6.12.1 ...<br>
  33. Version 6.12.1 downloaded to themes/after-dark<br>
  34. Stopping help server if running ...</br>
  35. Generating help documentation ...<br>
  36. Upgrade complete! Please see CHANGELOG.md for changes.</samp>
  37. {{< /hackcss-alert >}}
  38. Like [Quick Install](../quick-install) the upgrade script is written to POSIX standard will not require additional dependencies to operate on most systems. Upon upgrade the [Release Hash](../release-hashes) will update as well so you may [Validate Release](/validate).