mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 14:20:40 +01:00
Unify the supported install script os/distro set.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8a3f1f7111
commit
ee7ea4adb9
@ -148,6 +148,8 @@ if [ -n "INSTALLSYS" ]; then
|
||||
else
|
||||
INSTALLSYS=FEDORA
|
||||
fi
|
||||
elif [ -f /etc/SuSE-release ]; then
|
||||
INSTALLSYS=SUSE
|
||||
elif [ -f /etc/slackware-version ] ; then
|
||||
INSTALLSYS=SLACKWARE
|
||||
elif [ -f /etc/arch-release ] ; then
|
||||
|
@ -161,7 +161,13 @@ if [ -n "INSTALLSYS" ]; then
|
||||
if [ -f /etc/debian_version ]; then
|
||||
INSTALLSYS=DEBIAN
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
INSTALLSYS=FEDORA
|
||||
if [ -d /etc/sysconfig/network-scripts/ ]; then
|
||||
INSTALLSYS=REDHAT
|
||||
else
|
||||
INSTALLSYS=FEDORA
|
||||
fi
|
||||
elif [ -f /etc/SuSE-release ]; then
|
||||
INSTALLSYS=SUSE
|
||||
elif [ -f /etc/slackware-version ] ; then
|
||||
INSTALLSYS=SLACKWARE
|
||||
elif [ -f /etc/arch-release ] ; then
|
||||
@ -216,7 +222,7 @@ case "$TARGET" in
|
||||
echo "Installing Debian-specific configuration..."
|
||||
SPARSE=yes
|
||||
;;
|
||||
FEDORA)
|
||||
FEDORA|REDHAT)
|
||||
echo "Installing Redhat/Fedora-specific configuration..."
|
||||
;;
|
||||
SLACKWARE)
|
||||
@ -230,7 +236,7 @@ case "$TARGET" in
|
||||
DEST="/etc/rc.d"
|
||||
INIT="$PRODUCT"
|
||||
;;
|
||||
LINUX)
|
||||
LINUX|SUSE)
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unknown TARGET \"$TARGET\"" >&2
|
||||
@ -303,7 +309,7 @@ case $TARGET in
|
||||
DEBIAN)
|
||||
install_file init.debian.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
|
||||
;;
|
||||
FEDORA)
|
||||
FEDORA|REDHAT)
|
||||
install_file init.fedora.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
|
||||
;;
|
||||
ARCHLINUX)
|
||||
|
@ -153,9 +153,15 @@ if [ -n "INSTALLSYS" ]; then
|
||||
if [ -f /etc/debian_version ]; then
|
||||
INSTALLSYS=DEBIAN
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
INSTALLSYS=FEDORA
|
||||
if [ -d /etc/sysconfig/network-scripts/ ]; then
|
||||
INSTALLSYS=REDHAT
|
||||
else
|
||||
INSTALLSYS=FEDORA
|
||||
fi
|
||||
elif [ -f /etc/slackware-version ] ; then
|
||||
INSTALLSYS=SLACKWARE
|
||||
elif [ -f /etc/SuSE-release ]; then
|
||||
INSTALLSYS=SUSE
|
||||
elif [ -f /etc/arch-release ] ; then
|
||||
INSTALLSYS=ARCHLINUX
|
||||
else
|
||||
@ -270,7 +276,7 @@ case "$TARGET" in
|
||||
echo "Installing Debian-specific configuration..."
|
||||
SPARSE=yes
|
||||
;;
|
||||
FEDORA)
|
||||
FEDORA|REDHAT)
|
||||
echo "Installing Redhat/Fedora-specific configuration..."
|
||||
;;
|
||||
SLACKWARE)
|
||||
@ -346,7 +352,7 @@ case $TARGET in
|
||||
DEBIAN)
|
||||
install_file init.debian.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
|
||||
;;
|
||||
FEDORA)
|
||||
FEDORA|REDHAT)
|
||||
install_file init.fedora.sh ${DESTDIR}/etc/init.d/$PRODUCT 0544
|
||||
;;
|
||||
ARCHLINUX)
|
||||
|
Loading…
Reference in New Issue
Block a user