Skip to content

Commit

Permalink
Don't print unchanged parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Jan 14, 2025
1 parent e062a9a commit 8e5f0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/upgrade/to-14.1-crypt-at-rest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ sub update_config_controller {
for my $section ($ini->Sections()) {
for my $param ($ini->Parameters($section)) {
next if (!exists $fields2Encrypt{$param});
print "Changing $section.$param\n";
my $val = $ini->val($section, $param);
next if length($val) == 0;
print "Changing $section.$param\n";
$val = pf::config::crypt::pf_encrypt($val);
$ini->setval($section, $param, $val);
$changed |= 1;
Expand Down

0 comments on commit 8e5f0e3

Please sign in to comment.