[EDIT] CAMBIO 10 06 2024

parent 72a5609b
......@@ -31,14 +31,10 @@ public class ConsoleApi {
String line;
while ((line = reader.readLine()) != null) {
output.append(line).append("\n");
output.append("\n").append(line);
}
int exitCode = process.waitFor();
return ResponseEntity.ok(
"Exit Code: " + exitCode + "\n" +
output.toString());
process.waitFor();
return ResponseEntity.ok(output.toString().replace("[sudo] contraseña para wildfly: ",""));
} catch (IOException | InterruptedException e) {
throw new RuntimeException(e);
}
......
......@@ -3,6 +3,7 @@ package web.multitask.trismegistoservices.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.ChannelRegistration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
......@@ -42,5 +43,4 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
public void configureClientInboundChannel(ChannelRegistration registration) {
registration.interceptors(authChannelInterceptorAdapter);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment