Skip to content
Browse files

eliminated commands with absolute paths in maintainer scripts

  • Loading branch information...
1 parent 99154be commit 62dd0670f886a2fb41e8e50100e42cc9f2f7fe79 @racke racke committed Nov 6, 2009
View
2 debian/interchange-cat-standard.postinst 100644 → 100755
@@ -155,7 +155,7 @@ Catalog standard /var/lib/interchange/catalogs/standard $URLS
EOF
if [ ! -f /var/run/interchange-install ]; then
# add catalog to running server
- echo "Catalog standard /var/lib/interchange/catalogs/standard $URLS" | /usr/sbin/interchange --add standard
+ echo "Catalog standard /var/lib/interchange/catalogs/standard $URLS" | interchange --add standard
fi
fi
View
6 debian/interchange-cat-standard.prerm 100644 → 100755
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2001,2004,2005,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2004,2005,2008,2009 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
@@ -24,13 +24,13 @@
. /usr/share/dbconfig-common/dpkg/prerm
dbc_go interchange-cat-standard $@
-/usr/sbin/interchangeconfig USE_STANDARD=
+interchangeconfig USE_STANDARD=
db_get interchange-cat-standard/install
if [ "$RET" = "true" ]; then
if [ ! -f /var/run/interchange-install ]; then
# remove catalog from running server
- /usr/sbin/interchange --remove=standard || true
+ interchange --remove=standard || true
rm -f /var/lib/interchange/catalog.d/interchange-cat-standard.cfg
fi
fi
View
4 debian/interchange-ui.postinst 100644 → 100755
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2001,2006 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2006,2009 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
@@ -34,7 +34,7 @@ fi
db_get interchange-ui/defaultlocale
UI_LOCALE=$RET
-/usr/sbin/interchangeconfig UI=1 UI_LOCALE=$UI_LOCALE USE_FOUNDATION=$USE_FOUNDATION
+interchangeconfig UI=1 UI_LOCALE=$UI_LOCALE USE_FOUNDATION=$USE_FOUNDATION
#DEBHELPER#
View
6 debian/interchange-ui.postrm 100644 → 100755
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2001,2006,2007 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2006,2007,2009 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
@@ -29,8 +29,8 @@ if [ "$1" = "remove" ]; then
fi
fi
- if [ -x /usr/sbin/interchangeconfig ]; then
- /usr/sbin/interchangeconfig UI= USE_FOUNDATION=
+ if which interchangeconfig > /dev/null 2>&1; then
+ interchangeconfig UI= USE_FOUNDATION=
fi
# We use the file /var/run/interchange-install to record
View
4 debian/interchange-ui.prerm 100644 → 100755
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2001,2006 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2006,2009 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
@@ -26,7 +26,7 @@ else
/etc/init.d/interchange stop
fi
-/usr/sbin/interchangeconfig UI= USE_FOUNDATION=
+interchangeconfig UI= USE_FOUNDATION=
# We use the file /var/run/interchange-install to record
# the installed interchange packages, so only one server
View
4 debian/interchange.config
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2000,2001,2002,2003,2004,2005,2007 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2000,2001,2002,2003,2004,2005,2007,2009 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
@@ -155,7 +155,7 @@ db_input low interchange/full_url || [ $? -eq 30 ]
db_go
# SOAP server
-if /usr/bin/perl -MSOAP::Lite -e '' 2>/dev/null; then
+if perl -MSOAP::Lite -e '' 2>/dev/null; then
db_set interchange/cansoap true
db_input low interchange/soap || [ $? -eq 30 ]
else
View
2 debian/interchange.postinst 100644 → 100755
@@ -107,7 +107,7 @@ fi
db_get interchange/traffic
TRAFFIC="$RET"
-/usr/sbin/interchangeconfig FULL_URL=$FULL_URL SOAP=$SOAP TRAFFIC=$RET
+interchangeconfig FULL_URL=$FULL_URL SOAP=$SOAP TRAFFIC=$RET
# Make configuration files owned by the interchange user
chown -R $USER.$GROUP /etc/interchange

0 comments on commit 62dd067

Please sign in to comment.
Something went wrong with that request. Please try again.