summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-14 14:28:48 +0200
committerSimon Rettberg2024-10-14 14:28:48 +0200
commitfd0e0a8a89e730919ba154b2af2228fb235ec19d (patch)
tree5ff8b3d19370a4217d06d93caa4ab3448edd7f06
parentArchive: Support .tar.lz4 for output (diff)
downloadtmlite-bwlp-fd0e0a8a89e730919ba154b2af2228fb235ec19d.tar.gz
tmlite-bwlp-fd0e0a8a89e730919ba154b2af2228fb235ec19d.tar.xz
tmlite-bwlp-fd0e0a8a89e730919ba154b2af2228fb235ec19d.zip
[LighttpdHttps] Allow setting redirect when disabling httpsHEADmaster
This doesn't make much sense on first glipmse, but since we always run https with a self-signed certficate, it actually does. :)
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/LighttpdHttps.java3
1 files changed, 3 insertions, 0 deletions
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<String> 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 ) {