summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-11-24 11:42:25 +0000
committerColin Guthrie <colin@mageia.org>2013-11-24 11:42:25 +0000
commit743d0f83ba6c25f111069284e06a5e81052285c4 (patch)
treef069d953038be755c537ecc2330bbe295e5ba846 /perl-install/standalone
parent85b1b15f743ae641eddfdbe3188fa8571215e98d (diff)
downloaddrakx-743d0f83ba6c25f111069284e06a5e81052285c4.tar
drakx-743d0f83ba6c25f111069284e06a5e81052285c4.tar.gz
drakx-743d0f83ba6c25f111069284e06a5e81052285c4.tar.bz2
drakx-743d0f83ba6c25f111069284e06a5e81052285c4.tar.xz
drakx-743d0f83ba6c25f111069284e06a5e81052285c4.zip
draksec: Make sure to restart polkitd after writing new rules
Also do not try to rm the file if it does not exist (it seems to complain and then exit if you try to do it on a non-existant file - which means the function is not named nicely as -f to rm should make it ignore this)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/draksec4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec
index f70bcd423..f78b5f63a 100755
--- a/perl-install/standalone/draksec
+++ b/perl-install/standalone/draksec
@@ -157,8 +157,10 @@ $contents
}return polkit.Result.NOT_HANDLED;};
EOF
} else {
- rm_rf($polkit_rules_file);
+ rm_rf($polkit_rules_file) if -f $polkit_rules_file;
}
+
+ system('systemctl', 'try-restart', 'polkit.service');
}
my %descr = (