Command line virtualmin "delete-domain" does not remove awstats cron job

Hello,

Here's another bug: running "virtualmin delete-domain --domain " at the command line does not actually remove the cron job entry for awstats. IN this case the entry still reads:

58 4 * * * /etc/webmin/virtualmin-awstats/awstats.pl <domainname>

The gui version removes the cron entry properly.

--jason

Status: 
Active

Comments

That is quite surprising, as they run the exact same code! Does this happen consistently?

So far it keeps happening. The webalizer cron entries are being properly removed, but the awstats are not.

I have been scripting a transfer to a new server (from ubuntu 12.04lts to ubuntu16.04lts.) I am running the script as user root. Since I have been experiencing problems just restoring virtual servers, I have had to build a set of scripts to rebuild the virtual servers. The "erase-virtualmin.sh" script is fairly simple: foreach subserver then toplevel servers, delete each domain.

The "load-virtualmin" script is a bit more complex, but probably out of the scope of this forum, but pretty much follows the "foreach toplevel/subserver, virtualmin restore-domain..."

As I am nearly done with my site moves (fingers crossed), hopefully I won't need to run my erase script again, but if I do, I certainly will let you know my results.

--jason

Are you getting any error messages during the deletion process?