We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab222b2 commit 07e8411Copy full SHA for 07e8411
cmdeploy/src/cmdeploy/deployers.py
@@ -3,7 +3,7 @@
3
"""
4
5
import os
6
-from io import StringIO
+from io import BytesIO, StringIO
7
from pathlib import Path
8
9
from chatmaild.config import read_config
@@ -468,6 +468,14 @@ def __init__(self, mail_domain):
468
self.mail_domain = mail_domain
469
470
def install(self):
471
+ files.put(
472
+ name="Disable installing recommended packages globally",
473
+ src=BytesIO(b'APT::Install-Recommends "0";\n'),
474
+ dest="/etc/apt/apt.conf.d/99no-recommends",
475
+ user="root",
476
+ group="root",
477
+ mode="644",
478
+ )
479
apt.update(name="apt update", cache_time=24 * 3600)
480
apt.upgrade(name="upgrade apt packages", auto_remove=True)
481
0 commit comments