Actions
Bug #16057
closedThe package ``post-install`` script does not run with a system upgrade on ZFS
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Package System
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
25.03
Release Notes:
Default
Affected Version:
Affected Architecture:
Description
As an example, the freeradius package defines the following in its xml:
<custom_php_install_command> freeradius_install_command(); </custom_php_install_command>
This function
freeradius_install_command()
calls freeradius_dictionary_resync()
which overwrites the file /usr/local/etc/raddb/dictionary
. With freeradius3 version 0.15.14, the function freeradius_dictionary_resync()
was updated to reference the new location of the dictionary.pfsense
file: from /usr/share/doc/radius/dictionary.pfsense
to /usr/local/share/pfSense/radius/dictionary.pfsense
.
After a system upgrade, the package is updated as expected:
pfSense-pkg-freeradius3: 0.15.13 -> 0.15.14 [pfSense]
However, radiusd fails to start because the old location is still referenced:
# Local dictionary, does not need to include the master dictionary ATTRIBUTE MOTP-Init-Secret 900 string ATTRIBUTE MOTP-PIN 901 string ATTRIBUTE MOTP-Offset 902 string $INCLUDE /usr/share/doc/radius/dictionary.pfsense $INCLUDE /usr/local/pkg/dictionary.mpd
Reinstalling the package from the System > Package Manager
page regenerates the file and the freeradius3 service is able to start. This indicates that the package post-install hook is not triggered with ZFS upgrades.
Actions