1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
Commit graph

3 commits

Author SHA1 Message Date
catborise
29d4bc2e7a feat: update.sh updates an installer or manual installation in one command
Updating took four steps of commands copied from the README, with a
diff to read for settings.py and the nginx config. update.sh does them:
run from the repository (git show origin/master:update.sh | bash), it is
always the newest one, also on an installation that has none yet.

Nothing changes before its checks pass: root, an installation, with
PostgreSQL --database-backed-up, and an older version's own settings.py
moved into data/local_settings.py first (it stops and shows how that
settings.py differs from its version's template). Then it stops the
panel, backs it up into /root/webvirtcloud-backup-<date>, pulls master,
installs the requirements (LDAP's too when installed), migrates,
collects the static files, gives the files to the panel's user,
installs the units and starts the panel. It does not replace the nginx
config, which holds the installation's own lines: it prints what the
new version changes in it. The whole script is one function, so the
pull cannot change what runs.

dev/test-installer.sh IMAGE FROM installs FROM and updates it to HEAD;
the Installer workflow runs it from v4.3.0 on Debian 13 and AlmaLinux
10. The README's update section is the command and what it does.
2026-11-20 18:28:00 +03:00
catborise
2947995e8c fix(installer): openSUSE Leap 16
Leap 16 builds the libvirt and lxml bindings for Python 3.13
(python313-*); the installer asked for python3-libvirt, which it does
not have, and stopped. On openSUSE it now installs the Python stack the
distribution builds the libvirt binding for: 3.11 on Leap 15 and SLES
15, 3.13 on Leap 16 and Tumbleweed. The installer workflow tests Leap
16.0 too, and the README says which installs CI tests.
2026-11-20 17:02:57 +03:00
catborise
1a39bd3480 ci: install.sh tested on each supported distribution
The installer was tested by hand in containers before a release; a
change to it, to what it installs or a distribution's packages could
break a fresh install unseen. dev/test-installer.sh installs the
committed HEAD with install.sh in a systemd container of one
distribution and checks that the panel's services run, it has a secret
key and an admin password, and the login page loads. The Installer
workflow runs it on Ubuntu 22.04/24.04/26.04, Debian 12/13, AlmaLinux
10, openSUSE Leap 15.6 and openEuler 24.03 when the installer or conf/
changes, and weekly.
2026-11-20 16:19:49 +03:00