summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-14 14:28:48 +0200
committerSimon Rettberg2024-10-14 14:28:48 +0200
commitfd0e0a8a89e730919ba154b2af2228fb235ec19d (patch)
tree5ff8b3d19370a4217d06d93caa4ab3448edd7f06 /src/main
parentArchive: Support .tar.lz4 for output (diff)
downloadtmlite-bwlp-master.tar.gz
tmlite-bwlp-master.tar.xz
tmlite-bwlp-master.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. :)
Diffstat (limited to 'src/main')
-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 ) {