Fix install.sh with PREFIX

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8503 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-05-19 18:49:47 +00:00
parent 5f3456fc34
commit 7378dad571

View File

@ -200,10 +200,10 @@ if [ -n "$PREFIX" ]; then
if [ -z "$CYGWIN" -a `id -u` != 0 ] ; then
echo "Not setting file owner/group permissions, not running as root."
OWNERSHIP=""
fi
install -d $OWNERSHIP -m 755 ${PREFIX}/sbin
install -d $OWNERSHIP -m 755 ${PREFIX}${DEST}
fi
else
[ -x /usr/share/shorewall-shell/compiler -o -x /usr/share/shorewall-perl/compiler.pl ] || \
{ echo " ERROR: No Shorewall compiler is installed" >&2; exit 1; }