pandorafms/pandora_console/update_manager_client
daniel 64fc4bcd46 fixed styles 2023-03-21 14:06:28 +01:00
..
lib/UpdateManager Merge branch 'ent-9022-Bug-histórico-de-actualizaciones' into 'develop' 2022-06-16 08:42:39 +00:00
pics Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
resources updated jquery-ui library 2023-02-23 16:48:57 +01:00
tests Merge remote-tracking branch 'origin/develop' into ent-7621-autenticacion-local-usuarios-solo-api 2022-04-18 17:46:36 +02:00
views fixed styles 2023-03-21 14:06:28 +01:00
.gitignore Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
.gitlab-ci.yml Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
README.md Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
api.php Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
composer.json Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
composer.lock Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
index.php Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00
phpcs.xml Moved from vendor to independent folder inside PandoraFMS Project #8731#note_144708 2022-04-12 13:12:05 +02:00

README.md

Update Manager Client

Introduction

This library is the client side of the Update Manager project from Artica PFMS.

Allows update files in on-premise PHP projects and apply database upgrades on them.

How to use

Update manager client allows package updates in OUM format.

This OUM packages are zip files.

To generate an update pack you should zip all files in the way you want them to be in your installation:

$ tree update_package
update_package/
├── file1.txt
└── folder1
    ├── file1-1.txt
    └── folder2
        └── file1-2.txt

2 directories, 3 files

$ cd update_package && zip -r update_package_1.oum ./
  adding: file1.txt (stored 0%)
  adding: folder1/ (stored 0%)
  adding: folder1/file1-1.txt (stored 0%)
  adding: folder1/folder2/ (stored 0%)
  adding: folder1/folder2/file1-2.txt (stored 0%)

Create a file to handle updates with following content

<?php
/**
 * Sample file to perform offline updates.
 */

require_once "vendor/autoload.php";
use UpdateManager\UI\Manager;

$umc = new Manager(
  // Whatever is placed in url after host name.
  public_url: "/",
  settings: [
    "homedir" => __DIR__,
    "allowOfflinePatches" => true,
  ],
  mode: Manager::MODE_OFFLINE,
  composer: true
);
$umc->run();

By accessing the file via URL, you can use the offline updater:

Press the green area to start the update.

You will receive a summary of the installation process.

If success, then files and folders will be recreated under homedir path.

More information:

https://pandorafms.com/manual/en/documentation/02_installation/02_anexo_upgrade?s[]=update&s[]=manager#automatic_update_with_update_manager

https://pandorafms.com/en/