summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a070be)
raw | patch | inline | side by side (parent: 2a070be)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 Mar 2008 14:24:43 +0000 (14:24 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 Mar 2008 14:24:43 +0000 (14:24 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9925 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/client/events/gosaTriggered.pm | patch | blob | history |
index a13b872ce85e50a62a48c6fe58f0bb8fc61b5b1a..cf364b4dd7409b2e15ce4440da3953bd7fa85797 100644 (file)
}
+# Backward compatibility
sub trigger_action_update {
my ($msg, $msg_hash) = @_;
- # execute function
- open(FILE, "> /etc/gosa-si/event");
- print FILE "trigger_action_reinstall\n";
- close(FILE);
-
- # check logged in user
- my $logged_in_user = 1;
- if( $logged_in_user ) {
- print STDERR "This system has been sent a signal for an update. The update will take place after you log out.\n";
- }
- else {
- # not jet
- #system( "DEBIAN_FRONTEND=noninteractive /usr/sbin/fai -N softupdate &" )
- }
+ # Execute update
+ system( "DEBIAN_FRONTEND=noninteractive /usr/sbin/fai-softupdate &" );
return;
}
-
+# Backward compatibility
sub trigger_action_instant_update {
my ($msg, $msg_hash) = @_;
- # check logged in user
- my $logged_in_user = 1;
- if( $logged_in_user ) {
- print STDERR "This system has been sent a signal for an update. The update will take place now.\n";
- if(stat('/usr/bin/fai-softupdate-notify')) {
- system('/usr/bin/fai-softupdate-notify start');
- }
- }
-
- # not jet
- #system( "DEBIAN_FRONTEND=noninteractive /usr/sbin/fai -N softupdate &" )
+ # Execute update
+ system( "DEBIAN_FRONTEND=noninteractive /usr/sbin/fai-softupdate &" );
return;
}