Add cant_autostart() to the installers's library

Signed-off-by: Matt Darfeuille <matdarf@gmail.com>
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Matt Darfeuille 2017-02-20 18:51:53 +01:00 committed by Tom Eastep
parent f0debcb6fb
commit 42554f8f31
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10
5 changed files with 6 additions and 24 deletions

View File

@ -36,12 +36,6 @@ usage() # $1 = exit status
exit $1
}
cant_autostart()
{
echo
echo "WARNING: Unable to configure shorewall to start automatically at boot" >&2
}
install_file() # $1 = source $2 = target $3 = mode
{
if cp -f $1 $2; then

View File

@ -82,3 +82,9 @@ make_parent_directory() # $1 = directory , $2 = mode
chmod $2 $1
[ -n "$OWNERSHIP" ] && chown $OWNER:$GROUP $1
}
cant_autostart()
{
echo
echo "WARNING: Unable to configure $Product to start automatically at boot" >&2
}

View File

@ -41,12 +41,6 @@ usage() # $1 = exit status
exit $1
}
cant_autostart()
{
echo
echo "WARNING: Unable to configure shorewall init to start automatically at boot" >&2
}
install_file() # $1 = source $2 = target $3 = mode
{
if cp -f $1 $2; then

View File

@ -34,12 +34,6 @@ usage() # $1 = exit status
exit $1
}
cant_autostart()
{
echo
echo "WARNING: Unable to configure $Product to start automatically at boot" >&2
}
install_file() # $1 = source $2 = target $3 = mode
{
if cp -f $1 $2; then

View File

@ -48,12 +48,6 @@ run_install()
fi
}
cant_autostart()
{
echo
echo "WARNING: Unable to configure $PRODUCT to start automatically at boot" >&2
}
install_file() # $1 = source $2 = target $3 = mode
{
run_install $T $OWNERSHIP -m $3 $1 ${2}