I've been using hostsblock on archlinux, installed via aur, no major problems.
today i tried to install it on ubuntu, "the easy way".
basically everything failed.
it seems the group hostsblock already existed on my computer, and the installation failed.
so i exited the script and created user & group hostsblock manually, then re-ran install.sh.
however, $HOMEDIR is defined only if user hostsblock does not exist yet! the script later happily (and silently) installed config files into the root directory /.
even worse, $DESTDIR is not checked for being an existing directory, only making sure it's not zero length, but that twice. why not use [ -d "$d" ] && [ -w "$d" ] here???
i must have accidenatlly input some garbage, because the script then happily (and silently) installed executables into the root directory /.
frankly, considering that hostsblock itself is a bash script, i am appalled.
I've been using hostsblock on archlinux, installed via aur, no major problems.
today i tried to install it on ubuntu, "the easy way".
basically everything failed.
it seems the group hostsblock already existed on my computer, and the installation failed. so i exited the script and created user & group hostsblock manually, then re-ran install.sh. however,
$HOMEDIR
is defined only if user hostsblock does not exist yet! the script later happily (and silently) installed config files into the root directory /.even worse,
$DESTDIR
is not checked for being an existing directory, only making sure it's not zero length, but that twice. why not use[ -d "$d" ] && [ -w "$d" ]
here??? i must have accidenatlly input some garbage, because the script then happily (and silently) installed executables into the root directory/
.frankly, considering that hostsblock itself is a bash script, i am appalled.