[EDIT] CAMBIO 10 06 2024

parent 72a5609b
...@@ -31,14 +31,10 @@ public class ConsoleApi { ...@@ -31,14 +31,10 @@ public class ConsoleApi {
String line; String line;
while ((line = reader.readLine()) != null) { while ((line = reader.readLine()) != null) {
output.append(line).append("\n"); output.append("\n").append(line);
} }
process.waitFor();
int exitCode = process.waitFor(); return ResponseEntity.ok(output.toString().replace("[sudo] contraseña para wildfly: ",""));
return ResponseEntity.ok(
"Exit Code: " + exitCode + "\n" +
output.toString());
} catch (IOException | InterruptedException e) { } catch (IOException | InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
...@@ -3,6 +3,7 @@ package web.multitask.trismegistoservices.config; ...@@ -3,6 +3,7 @@ package web.multitask.trismegistoservices.config;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messaging.simp.config.ChannelRegistration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry; import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
...@@ -42,5 +43,4 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { ...@@ -42,5 +43,4 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
public void configureClientInboundChannel(ChannelRegistration registration) { public void configureClientInboundChannel(ChannelRegistration registration) {
registration.interceptors(authChannelInterceptorAdapter); 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