From 3e54fd8973370f1dcf28b0408ff3eefca90597aa Mon Sep 17 00:00:00 2001 From: lhm-gosa Date: Fri, 17 Sep 2010 21:25:20 +0000 Subject: [PATCH] Trigger actions also when no user is logged in git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19760 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-si/client/events/gosaTriggered.pm | 21 +++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/trunk/gosa-si/client/events/gosaTriggered.pm b/trunk/gosa-si/client/events/gosaTriggered.pm index ed19d3120..49ff856ca 100644 --- a/trunk/gosa-si/client/events/gosaTriggered.pm +++ b/trunk/gosa-si/client/events/gosaTriggered.pm @@ -386,11 +386,12 @@ sub trigger_action_reinstall { my @user_list = &get_logged_in_users; if( @user_list >= 1 ) { system( "/usr/bin/goto-notify install" ); - open(FILE, "> /etc/gosa-si/event"); - print FILE "install\n"; - close(FILE); } + open(FILE, "> /etc/gosa-si/event"); + print FILE "install\n"; + close(FILE); + system( "/usr/sbin/goto-action &" ); return; @@ -435,11 +436,12 @@ sub trigger_action_update { my @user_list = &get_logged_in_users; if( @user_list >= 1 ) { system( "/usr/bin/goto-notify softupdate" ); - open(FILE, "> /etc/gosa-si/event"); - print FILE "softupdate\n"; - close(FILE); } + open(FILE, "> /etc/gosa-si/event"); + print FILE "softupdate\n"; + close(FILE); + system( "/usr/sbin/goto-action &" ); return; @@ -484,11 +486,12 @@ sub trigger_action_instant_update { my @user_list = &get_logged_in_users; if( @user_list >= 1 ) { system( "/usr/bin/goto-notify softupdate" ); - open(FILE, "> /etc/gosa-si/event"); - print FILE "softupdate\n"; - close(FILE); } + open(FILE, "> /etc/gosa-si/event"); + print FILE "softupdate\n"; + close(FILE); + system( "/usr/sbin/goto-action &" ); return; -- 2.30.2