mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 12:13:29 +02:00
Install the routes file unless $SPARSE
- Don't delete the file unconditionally. - Delete an unhelpful comment Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8c53fa175c
commit
2763826059
@ -102,9 +102,6 @@ require()
|
|||||||
|
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
|
|
||||||
#
|
|
||||||
# Load packager's settings if any
|
|
||||||
#
|
|
||||||
if [ -f shorewall ]; then
|
if [ -f shorewall ]; then
|
||||||
PRODUCT=shorewall
|
PRODUCT=shorewall
|
||||||
Product=Shorewall
|
Product=Shorewall
|
||||||
@ -742,10 +739,6 @@ if [ -f findgw ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# Delete the Routes file
|
|
||||||
#
|
|
||||||
delete_file ${DESTDIR}${CONFDIR}/$PRODUCT/routes
|
|
||||||
#
|
#
|
||||||
# Delete the tcstart file
|
# Delete the tcstart file
|
||||||
#
|
#
|
||||||
@ -989,6 +982,17 @@ if [ -z "$SPARSE" -a ! -f ${DESTDIR}${CONFDIR}/$PRODUCT/actions ]; then
|
|||||||
echo "Actions file installed as ${DESTDIR}${CONFDIR}/$PRODUCT/actions"
|
echo "Actions file installed as ${DESTDIR}${CONFDIR}/$PRODUCT/actions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Install the Routes file
|
||||||
|
#
|
||||||
|
run_install $OWNERSHIP -m 0644 routes ${DESTDIR}${SHAREDIR}/$PRODUCT/configfiles/
|
||||||
|
run_install $OWNERSHIP -m 0644 routes.annotated ${DESTDIR}${SHAREDIR}/$PRODUCT/configfiles/
|
||||||
|
|
||||||
|
if [ -z "$SPARSE" -a ! -f ${DESTDIR}${CONFDIR}/$PRODUCT/routes ]; then
|
||||||
|
run_install $OWNERSHIP -m 0644 routes${suffix} ${DESTDIR}${CONFDIR}/$PRODUCT/routes
|
||||||
|
echo "Routes file installed as ${DESTDIR}${CONFDIR}/$PRODUCT/routes"
|
||||||
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user