mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +01:00
Correct init script installation
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a6afac0f3c
commit
c975cddfda
@ -233,11 +233,19 @@ fi
|
||||
#
|
||||
# Install the Init Script
|
||||
#
|
||||
if [ -n "$INITFILE" ]; then
|
||||
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
|
||||
echo "Shorewall Init script installed in ${DESTDIR}${INITDIR}/$INITFILE"
|
||||
fi
|
||||
case $TARGET in
|
||||
debian)
|
||||
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
redhat)
|
||||
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
*)
|
||||
install_file init.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
|
||||
#
|
||||
# Install the .service file
|
||||
#
|
||||
|
@ -300,11 +300,22 @@ if [ -n "$DESTDIR" ]; then
|
||||
chmod 755 ${DESTDIR}${INITDIR}
|
||||
fi
|
||||
|
||||
#
|
||||
# Install the Firewall Script
|
||||
#
|
||||
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
|
||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/$INITFILE"
|
||||
case $TARGET in
|
||||
debian)
|
||||
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
redhat)
|
||||
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
archlinux)
|
||||
install_file init.archlinux.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
*)
|
||||
install_file init.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/${INITFILE}"
|
||||
|
||||
#
|
||||
# Install the .service file
|
||||
|
@ -259,7 +259,7 @@ case "$HOST" in
|
||||
;;
|
||||
redhat)
|
||||
echo "Installing Redhat/Fedora-specific configuration..."
|
||||
[ -n "$INITDIR" ] || INITDIR="/etc/rc.d/init.d"
|
||||
[ -n "$INITDIR" ] || INITDIR="/etc/rc.d/init.d"
|
||||
;;
|
||||
suse)
|
||||
echo "Installing SuSE-specific configuration...";
|
||||
@ -338,6 +338,12 @@ fi
|
||||
# Install the Firewall Script
|
||||
#
|
||||
case $HOST in
|
||||
debian)
|
||||
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
redhat)
|
||||
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||
;;
|
||||
slackware)
|
||||
if [ $PRODUCT = shorewall ]; then
|
||||
install_file init.slackware.firewall.sh ${DESTDIR}${DEST}/rc.firewall 0644
|
||||
|
Loading…
Reference in New Issue
Block a user