Correct init script installation

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-02-22 14:51:41 -08:00
parent a6afac0f3c
commit c975cddfda
3 changed files with 35 additions and 10 deletions

View File

@ -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
# #

View 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

View 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