Open
Description
What is the problem you are experiencing?
Looking at the installer scripts,
linux-hosts.deny-installer.sh:
# First Backup Existing hosts file
sudo mv /etc/hosts.deny /etc/hosts.deny.bak
# Now download the new hosts file and put it into place
sudo wget https://hosts.ubuntu101.co.za/hosts.deny -O /etc/hosts.deny
linux-superhosts.deny-installer.sh:
# Now download the new hosts.deny file and put it into place
sudo wget https://hosts.ubuntu101.co.za/superhosts.deny -O /etc/hosts.deny
As you can see both hosts.deny installer and superhosts.deny are writing to the same file hosts.deny
The end result is the first hosts.deny does not work because it is overwritten by superhosts.deny
Is this intended? I would have thought you'd want to merge the lists somehow?
How can we reproduce the problem?
- Install hosts.deny
- Install superhosts.deny
cat /etc/hosts.deny
and see that only one list is there
What did you expect to happen?
I expected I could install both hosts.deny and superhosts.deny and the lists would be merged?
Is there a workaround?
Manual merge the two lists together
Additional context
No response
Metadata
Assignees
Type
Projects
Status
🆕 New
Activity