mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02: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
|
# Install the Init Script
|
||||||
#
|
#
|
||||||
if [ -n "$INITFILE" ]; then
|
case $TARGET in
|
||||||
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
|
debian)
|
||||||
echo "Shorewall Init script installed in ${DESTDIR}${INITDIR}/$INITFILE"
|
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||||
fi
|
;;
|
||||||
|
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
|
# Install the .service file
|
||||||
#
|
#
|
||||||
|
@ -300,11 +300,22 @@ if [ -n "$DESTDIR" ]; then
|
|||||||
chmod 755 ${DESTDIR}${INITDIR}
|
chmod 755 ${DESTDIR}${INITDIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
case $TARGET in
|
||||||
# Install the Firewall Script
|
debian)
|
||||||
#
|
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||||
install_file init.sh ${DESTDIR}${INITDIR}/$INITFILE 0544
|
;;
|
||||||
echo "$Product script installed in ${DESTDIR}${INITDIR}/$INITFILE"
|
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
|
# Install the .service file
|
||||||
|
@ -338,6 +338,12 @@ fi
|
|||||||
# Install the Firewall Script
|
# Install the Firewall Script
|
||||||
#
|
#
|
||||||
case $HOST in
|
case $HOST in
|
||||||
|
debian)
|
||||||
|
install_file init.debian.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||||
|
;;
|
||||||
|
redhat)
|
||||||
|
install_file init.fedora.sh ${DESTDIR}${INITDIR}/${INITFILE} 0544
|
||||||
|
;;
|
||||||
slackware)
|
slackware)
|
||||||
if [ $PRODUCT = shorewall ]; then
|
if [ $PRODUCT = shorewall ]; then
|
||||||
install_file init.slackware.firewall.sh ${DESTDIR}${DEST}/rc.firewall 0644
|
install_file init.slackware.firewall.sh ${DESTDIR}${DEST}/rc.firewall 0644
|
||||||
|
Loading…
x
Reference in New Issue
Block a user