network/hostsblock: Fixed doinst.sh.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2017-08-09 22:55:45 +01:00 committed by Willy Sudiarto Raharjo
parent f098bd5c94
commit ea8fed553d
1 changed files with 2 additions and 2 deletions

View File

@ -14,6 +14,6 @@ config() {
config etc/hostsblock/rc.conf.new
# backup existing /etc/hosts to /etc/hostsblock/hosts.head if it doesn't already exist
if [ ! -r /etc/hostsblock/hosts.head ] ; then
cp /etc/hosts /etc/hostsblock/hosts.head
if [ ! -r etc/hostsblock/hosts.head ] ; then
cp etc/hosts etc/hostsblock/hosts.head
fi