From fd0e0a8a89e730919ba154b2af2228fb235ec19d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 14 Oct 2024 14:28:48 +0200 Subject: [LighttpdHttps] Allow setting redirect when disabling https This doesn't make much sense on first glipmse, but since we always run https with a self-signed certficate, it actually does. :) --- src/main/java/org/openslx/taskmanager/tasks/LighttpdHttps.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/openslx/taskmanager/tasks/LighttpdHttps.java b/src/main/java/org/openslx/taskmanager/tasks/LighttpdHttps.java index 20ef463..9e5476c 100644 --- a/src/main/java/org/openslx/taskmanager/tasks/LighttpdHttps.java +++ b/src/main/java/org/openslx/taskmanager/tasks/LighttpdHttps.java @@ -293,6 +293,9 @@ public class LighttpdHttps extends AbstractTask private boolean disableHttps() { List cmd = new ArrayList<>( BASE_CMD ); + if ( this.redirect ) { + cmd.add( "--redirect" ); + } cmd.add( "--disable" ); int ret = Exec.sync( 10, cmd.toArray( new String[ cmd.size() ] ) ); if ( ret != 0 ) { -- cgit v1.2.3-55-g7522