From 743d0f83ba6c25f111069284e06a5e81052285c4 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 24 Nov 2013 11:42:25 +0000 Subject: 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) --- perl-install/standalone/draksec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') 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 = ( -- cgit v1.2.1