From 1480c49a86aebc4b7e2b339ec229ddb6477571c8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 5 Apr 2015 21:31:06 +0200 Subject: perl_checker cleanups --- perl-install/standalone/finish-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/standalone/finish-install') diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install index e9edb2e02..7e05fc417 100755 --- a/perl-install/standalone/finish-install +++ b/perl-install/standalone/finish-install @@ -257,11 +257,11 @@ sub encrypt_home { sub ask_gnome_reboot() { my $lock_file = '/etc/draklive-install.d/gnome-reboot'; - if ( ! is_mgalive() ) { - if ( -f $lock_file ) { + if (!is_mgalive()) { + if (-f $lock_file) { run_program::run('/usr/bin/rm', '-f', $lock_file); # FIXME: convert to perl/gtk* window popup for translation support - system("/usr/bin/zenity --timeout=20 --title 'Finishing install' --no-wrap --info --text 'This system will be rebooted\nfor the changes to take effect!'"); + system('/usr/bin/zenity', '--timeout=20', '--title', 'Finishing install', '--no-wrap', '--info', '--text', 'This system will be rebooted\nfor the changes to take effect!'); run_program::run('/usr/bin/chown', '-R', 'gdm:gdm', '/var/lib/gdm'); run_program::run('/usr/sbin/ldconfig', '-X'); run_program::run('/usr/bin/systemctl', 'reboot'); -- cgit v1.2.1