Confirming the bug in the old version:
*** 7.6+dfsg-1ubuntu0.17.10.1 500
500 http://br.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages
ubuntu@artful-awstats:~$ sudo /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh
No directory, logging in with HOME=/
This account is currently not available.
Updating:
(...)
Get:1 http://br.archive.ubuntu.com/ubuntu artful-proposed/main amd64 awstats all 7.6+dfsg-1ubuntu0.17.10.2 [1843 kB]
(...)
Setting up awstats (7.6+dfsg-1ubuntu0.17.10.2) ...
Installing new version of config file /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh ...
Script now runs and complains about the expected things:
ubuntu@artful-awstats:~$ sudo /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh
No directory, logging in with HOME=/
Error while processing /etc/awstats/awstats.conf
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Verification for artful:
Confirming the bug in the old version: 1ubuntu0. 17.10.1 500 br.archive. ubuntu. com/ubuntu artful-updates/main amd64 Packages
*** 7.6+dfsg-
500 http://
ubuntu@ artful- awstats: ~$ sudo /etc/logrotate. d/httpd- prerotate/ awstats/ prerotate. sh
No directory, logging in with HOME=/
This account is currently not available.
Updating: br.archive. ubuntu. com/ubuntu artful- proposed/ main amd64 awstats all 7.6+dfsg- 1ubuntu0. 17.10.2 [1843 kB] 1ubuntu0. 17.10.2) ... d/httpd- prerotate/ awstats/ prerotate. sh ...
(...)
Get:1 http://
(...)
Setting up awstats (7.6+dfsg-
Installing new version of config file /etc/logrotate.
Script now runs and complains about the expected things: artful- awstats: ~$ sudo /etc/logrotate. d/httpd- prerotate/ awstats/ prerotate. sh awstats. conf awstats/ awstats. conf' file, web server or permissions) may be wrong.
ubuntu@
No directory, logging in with HOME=/
Error while processing /etc/awstats/
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/
Check config file, permissions and AWStats documentation (in 'docs' directory).
Artful verification completed.