improve the install on client-only machines; from maintainer

This commit is contained in:
naddy 2001-05-16 20:15:07 +00:00
parent a3f3bb9890
commit 9673a0eb1e

View File

@ -0,0 +1,41 @@
--- client-src/patch-system.sh.in.orig Mon May 14 20:20:09 2001
+++ client-src/patch-system.sh.in Wed May 16 06:38:28 2001
@@ -39,6 +39,7 @@
esac
CLIENT_PORT=10080
+KCLIENT_PORT=10081
INDEX_PORT=10082
TAPE_PORT=10083
@@ -70,6 +71,8 @@
ENABLE_TAPE=false;;
--client-port=?*)
CLIENT_PORT=`echo $1 | sed -e 's/[^=]*=//'`;;
+ --kclient-port=?*)
+ KCLIENT_PORT=`echo $1 | sed -e 's/[^=]*=//'`;;
--index-port=?*)
INDEX_PORT=`echo $1 | sed -e 's/[^=]*=//'`;;
--tape-port=?*)
@@ -87,6 +90,7 @@
echo "--enable/disable-index: enable/disable index server [`$ENABLE_INDEX && echo enabled || echo disabled`]"
echo "--enable/disable-tape: enable/disable tape server [`$ENABLE_TAPE && echo enabled || echo disabled`]"
echo "--client-port=<num>: amandad port number [$CLIENT_PORT]"
+ echo "--kclient-port=<num>: kamandad port number [$KCLIENT_PORT]"
echo "--index-port=<num>: index server port number [$INDEX_PORT]"
echo "--tape-port=<num>: tape server port number [$TAPE_PORT]"
exec true;;
@@ -102,9 +106,10 @@
TEMP="$SERVICES.new"
{
egrep < "$SERVICES" -v "^(amanda|amandaidx|amidxtape)${SERVICE_SUFFIX}[ ]"
- $ENABLE_AMANDAD && echo "amanda${SERVICE_SUFFIX} ${CLIENT_PORT}/udp"
- $ENABLE_INDEX && echo "amandaidx${SERVICE_SUFFIX} ${INDEX_PORT}/tcp"
- $ENABLE_TAPE && echo "amidxtape${SERVICE_SUFFIX} ${TAPE_PORT}/tcp"
+ echo "amanda${SERVICE_SUFFIX} ${CLIENT_PORT}/udp"
+ echo "kamanda${SERVICE_SUFFIX} ${KCLIENT_PORT}/udp"
+ echo "amandaidx${SERVICE_SUFFIX} ${INDEX_PORT}/tcp"
+ echo "amidxtape${SERVICE_SUFFIX} ${TAPE_PORT}/tcp"
} > "$TEMP"
if diff "$SERVICES" "$TEMP" >/dev/null 2>/dev/null; then
echo "$SERVICES is up to date"