Files
Alexandr Stelnykovych aea3aa4a2b linux: pass LOGLEVEL from the unit file, drop the unused PORTMASTER_ARGS
The unit file set LOGLEVEL=info and sourced /etc/default/portmaster, but
never passed the value to portmaster-core. Pass it as --log=${LOGLEVEL}.

An invalid level used to make ServiceConfig.Init fail, which would now turn
a mistyped LOGLEVEL into a service that does not start. Warn and fall back
to the default level instead, as the logger already does on its own.

PORTMASTER_ARGS was appended after "--", where cobra stops parsing flags and
the core ignores the rest, so it has had no effect since the v1 wrapper was
removed. Drop it, and replace the UI README instruction that relied on it
with the equivalent setting (Development Mode).
2026-10-15 12:54:54 +03:00
..

Installation scripts order

Execution order of installation scripts (preInstallScript, preRemoveScript, postInstallScript, postRemoveScript) is different for DEB and RPM packages. NOTE! 'remove' scripts is using from old version!

DEB scripts order

Useful link: https://wiki.debian.org/MaintainerScripts

DEB (apt) Install v2.2.2:
   [*] Before install (2.2.2 : deb : install)
   [*] After  install (2.2.2 : deb : configure)

DEB (apt) Upgrade v1.1.1 -> v2.2.2:
   [*] Before remove  (1.1.1 : deb : upgrade)
   [*] Before install (2.2.2 : deb : upgrade)
   [*] After  remove  (1.1.1 : deb : upgrade)
   [*] After  install (2.2.2 : deb : configure)

 DEB (apt) Remove:
   [*] Before remove  (1.1.1 : deb : remove)
   [*] After  remove  (1.1.1 : deb : remove)

RPM scripts order

Useful link: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/

When scriptlets are called, they will be supplied with an argument. This argument, accessed via $1 (for shell scripts) is the number of packages of this name which will be left on the system when the action completes.

 RPM (dnf) install:
   [*] Before install (2.2.2 : rpm : 1)
   [*] After  install (2.2.2 : rpm : 1)

 RPM (dnf) upgrade:
   [*] Before install (2.2.2 : rpm : 2)
   [*] After  install (2.2.2 : rpm : 2)
   [*] Before remove  (1.1.1 : rpm : 1)
   [*] After  remove  (1.1.1 : rpm : 1)

 RPM (dnf) remove:
   [*] Before remove  (2.2.2 : rpm : 0)
   [*] After  remove  (2.2.2 : rpm : 0)