Disabling Awstats does not remove awstats-icon links

Small, but still a bug: disabling Awstats should remove all the traces, like the following awstats-icon link files in the respective virtual server's home directory:

lrwxrwxrwx  1 username username    4 Oct 10 17:44 awstats-icon -> icon
lrwxrwxrwx  1 username username    4 Oct 10 17:44 awstatsicons -> icon
drwxr-xr-x  9 username username 4096 Oct 10 00:56 icon

but, unfortunately, it does not.



That's odd, because the code exists to remove those files.

Are they in the domain's home directory, or the public_html dir? Because the latter is what Virtualmin expects (and creates)

They are left in the public_html directory. I wonder why you always keep asking additional questions when it is so easy just to try it on your end?!

@yngens - I asked because in the bug you said "virtual server's home directory" , which is not the usual location.

Fixed (pending)

Never mind, I found the cause of this - it will be fixed in the next AWstats plugin release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Unfortunately, this was either never fixed or the problem came back. To reproduce the issue just enable and disable Awstats, and then see the following directories and files are left behind uncleaned:

/home/username/public_html/awstats-icon -> icon
/home/username/public_html/awstatsicons -> icon
Status: Closed (fixed) » Active

Forgot to change the issue status. If you really fixed it, then please make sure it won't come back.

I can confirm this is happening on Ubuntu Linux 18.04.1 with Webmin 1.930, Usermin 1.780 and Virtualmin 6.07.