Self-updating
Pressline pulls release zips directly from a GitHub repo. Default: maskalix/PressLine. Override with the update_repo webset key if you fork.
Apply flow
- Download
https://github.com/<repo>/archive/refs/tags/<tag>.zip - Validate the zip (
ZipArchive::open) - Extract to a tmp directory, find the top-level wrapper
- Back up the files that will be replaced
- Copy the new files into
PL_ROOT - Roll back from the backup on copy errors
- Write the new
version.php - Run
pl_schema_apply()— idempotent, safe to re-run - Append to
update_history(ring buffer, 10 entries)
Preserved files
Never overwritten by an update:
pl-config.phpmedia/plugins/.installed.htaccessPHPMailer/instalace/
Permission model
Viewing updates needs admin_level. Applying them needs dev_level. CSRF is enforced.
Caching
The latest-release lookup is cached for an hour in webset.update_cache. Force a refresh from the admin.