mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Enhance cleanup process in LinuxTest by adding log rotation and truncation for bunkerweb logs
This commit is contained in:
parent
75a8f39670
commit
f340999140
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ class LinuxTest(Test):
|
|||
try:
|
||||
proc = self.docker_exec(
|
||||
self.__distro,
|
||||
f"cd /opt/{self._name} ; ./cleanup-linux.sh ; rm -rf /etc/bunkerweb/configs/* ; rm -rf /etc/bunkerweb/plugins/* ; rm -rf /var/www/html/*",
|
||||
f"cd /opt/{self._name} ; ./cleanup-linux.sh ; rm -rf /etc/bunkerweb/configs/* ; rm -rf /etc/bunkerweb/plugins/* ; rm -rf /var/www/html/* ; journalctl --rotate --vacuum-time=1s ; truncate -s 0 /var/log/bunkerweb/error.log ; truncate -s 0 /var/log/bunkerweb/access.log ; truncate -s 0 /var/log/bunkerweb/scheduler.log",
|
||||
)
|
||||
if proc.returncode != 0:
|
||||
raise Exception("docker exec rm failed (cleanup)")
|
||||
|
|
|
|||
Loading…
Reference in a new issue