Code

Trigger actions also when no user is logged in
authorlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Sep 2010 21:25:20 +0000 (21:25 +0000)
committerlhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Sep 2010 21:25:20 +0000 (21:25 +0000)
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

index ed19d312083cee6c4a816f4582209845049a6b31..49ff856cac72f1034451358c467496f13eb4404a 100644 (file)
@@ -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;