Allow installers to run under Cygwin without extra parameters

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8489 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep
2008-04-30 15:11:26 +00:00
parent 0f6d348187
commit 2b51b76131
5 changed files with 72 additions and 46 deletions

View File

@ -149,13 +149,18 @@ if [ -z "$RUNLEVELS" ] ; then
RUNLEVELS=""
fi
if [ -z "$OWNER" ] ; then
OWNER=root
fi
if [ -z "$GROUP" ] ; then
GROUP=root
fi
case $(uname) in
CYGWIN*)
DEST=
INIT=
[ -z "$OWNER" ] && OWNER=$(id -un)
[ -z "$GROUP" ] && GROUP=$(id -gn)
;;
*)
[ -z "$OWNER" ] && OWNER=root
[ -z "$GROUP" ] && GROUP=root
;;
esac
NOBACKUP=
@ -184,7 +189,6 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
#
# Determine where to install the firewall script
#
DEBIAN=
OWNERSHIP="-o $OWNER -g $GROUP"