{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Updates{% endblock %} {% block content %} {% set l = u.latest %}

Updates

This server runs PanelCP {{ u.current }}. New versions come from the releases of {{ u.repo }} on GitHub{% if u.auto_check %}, checked once a day{% endif %}.

{{ m.csrf_field() }}
{% if u.running %} {% set r = u.running %}

{% if r.result == "done" %}Updated to {{ r.version }}{% elif r.result == "failed" %}Update to {{ r.version }} failed{% else %}Updating to {{ r.version }}…{% endif %}

{% if r.result == "done" %}All services were restarted on the new version.{% elif r.result == "failed" %}The previous version keeps running. The log below shows where it stopped.{% else %}Packages, configs and services are being updated. The panel may be unavailable for up to a minute.{% endif %}

{% if r.result == "done" %}Done{% elif r.result == "failed" %}Failed{% else %}Running{% endif %}
{{ (r.log or [])|join("\n") }}
{% if r.result %}
{{ m.csrf_field() }}
{% endif %}
{% endif %} {% if u.error %}

{{ u.error }}

{% endif %} {% if l %}

{% if u.available %}PanelCP {{ l.version }} is available{% else %}You run the latest version{% endif %}

{{ l.name }}{% if l.published %}, released {{ l.published[:10] }}{% endif %}{% if l.url %}. Open on GitHub{% endif %}

{% if u.available %}{{ u.current }} → {{ l.version }}{% else %}{{ u.current }}{% endif %}
{% if l.notes %}

What's new and what was fixed

{{ l.notes|markdown }}
{% endif %} {% if u.available %}
{% if u.installable %}
{{ m.csrf_field() }} The download is checked against the release's SHA256SUMS before anything changes.
{% else %}

This release has no installable package. Update by hand: download it, then run sudo ./install.sh upgrade.

{% endif %}
{% endif %}
{% elif not u.error %}
{% call m.empty("No release information yet", "Check now to ask GitHub for the latest release.") %}{% endcall %}
{% endif %}

Update source

A private repository needs a GitHub token that can only read it: a fine-grained token with Contents: Read-only for this one repository.

{{ m.csrf_field() }}
{% if u.token %}{% endif %}
{% if u.checked %}Last checked {{ u.checked|ago }}.{% endif %}
{% endblock %}