From: lhm-gosa Date: Fri, 17 Sep 2010 21:25:20 +0000 (+0000) Subject: Trigger actions also when no user is logged in X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3e54fd8973370f1dcf28b0408ff3eefca90597aa;p=gosa.git 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 --- 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;