Permalink
Browse files

SOAP server selection wasn't recorded in settings.cfg

  • Loading branch information...
1 parent 1262cd5 commit c2c207634be0b0a118db3900d95c111d746c5622 @racke racke committed Apr 21, 2004
Showing with 12 additions and 3 deletions.
  1. +2 −1 debian/interchange.config
  2. +10 −2 debian/interchange.postinst
View
3 debian/interchange.config
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2000,2001,2002,2003 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2000,2001,2002,2003,2004 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -159,6 +159,7 @@ db_go
# SOAP server
if /usr/bin/perl -MSOAP::Lite -e '' 2>/dev/null; then
+ db_set interchange/cansoap true
db_input low interchange/soap || true
else
db_input low interchange/cansoap || true
View
12 debian/interchange.postinst
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# Copyright 2001,2002,2003 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2002,2003,2004 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -107,6 +107,14 @@ if [ "$RET" = true ]; then
else
FULL_URL=0
fi
+db_get interchange/cansoap
+SOAP=0
+if [ "$RET" = true ]; then
+ db_get interchange/soap
+ if [ "$RET" = true ]; then
+ SOAP=1
+ fi
+fi
db_get interchange/traffic
TRAFFIC="$RET"
@@ -116,7 +124,7 @@ else
HASTHREADS=0
fi
-/usr/sbin/interchangeconfig DEBUG=$DEBUG FULL_URL=$FULL_URL TRAFFIC=$RET MV_GETPPID_BROKEN=$HASTHREADS
+/usr/sbin/interchangeconfig DEBUG=$DEBUG FULL_URL=$FULL_URL SOAP=$SOAP TRAFFIC=$RET MV_GETPPID_BROKEN=$HASTHREADS
# Make configuration files owned by the interchange user
chown -R $USER.$GROUP /etc/interchange

0 comments on commit c2c2076

Please sign in to comment.