mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Split log rm commands into separate shells
otherwise, if one fails, the following ones are not run.
This commit is contained in:
parent
1f52c46c9b
commit
82c682d6d1
1 changed files with 4 additions and 4 deletions
|
@ -641,10 +641,10 @@ def tools_basic_space_cleanup():
|
||||||
"""
|
"""
|
||||||
subprocess.run("apt autoremove && apt autoclean", shell=True)
|
subprocess.run("apt autoremove && apt autoclean", shell=True)
|
||||||
subprocess.run("journalctl --vacuum-size=50M", shell=True)
|
subprocess.run("journalctl --vacuum-size=50M", shell=True)
|
||||||
subprocess.run(
|
subprocess.run("rm /var/log/*.gz", shell=True)
|
||||||
"rm /var/log/*.gz && rm /var/log/*/*.gz && rm /var/log/*.? && rm /var/log/*/*.?",
|
subprocess.run("rm /var/log/*/*.gz", shell=True)
|
||||||
shell=True,
|
subprocess.run("rm /var/log/*.?", shell=True)
|
||||||
)
|
subprocess.run("rm /var/log/*/*.?", shell=True)
|
||||||
|
|
||||||
|
|
||||||
# ############################################ #
|
# ############################################ #
|
||||||
|
|
Loading…
Add table
Reference in a new issue