Skip to content

Commit

Permalink
SOAP server selection wasn't recorded in settings.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Apr 21, 2004
1 parent 1262cd5 commit c2c2076
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion debian/interchange.config
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh -e #! /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 # 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 # it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -159,6 +159,7 @@ db_go


# SOAP server # SOAP server
if /usr/bin/perl -MSOAP::Lite -e '' 2>/dev/null; then if /usr/bin/perl -MSOAP::Lite -e '' 2>/dev/null; then
db_set interchange/cansoap true
db_input low interchange/soap || true db_input low interchange/soap || true
else else
db_input low interchange/cansoap || true db_input low interchange/cansoap || true
Expand Down
12 changes: 10 additions & 2 deletions debian/interchange.postinst
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh #! /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 # 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 # it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -107,6 +107,14 @@ if [ "$RET" = true ]; then
else else
FULL_URL=0 FULL_URL=0
fi 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 db_get interchange/traffic
TRAFFIC="$RET" TRAFFIC="$RET"


Expand All @@ -116,7 +124,7 @@ else
HASTHREADS=0 HASTHREADS=0
fi 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 # Make configuration files owned by the interchange user
chown -R $USER.$GROUP /etc/interchange chown -R $USER.$GROUP /etc/interchange
Expand Down

0 comments on commit c2c2076

Please sign in to comment.