initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
10
root/etc/e-smith/db/accounts/migrate/10Primary
Normal file
10
root/etc/e-smith/db/accounts/migrate/10Primary
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
# Delete any pre-existing Primary=system record
|
||||
my $p = $DB->get('Primary');
|
||||
return unless defined $p;
|
||||
|
||||
my $type = $p->prop('type');
|
||||
return unless defined $type;
|
||||
|
||||
$p->delete if $type eq 'system';
|
||||
}
|
Reference in New Issue
Block a user