Skip to content

Commit 07e8411

Browse files
committed
1 parent ab222b2 commit 07e8411

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cmdeploy/src/cmdeploy/deployers.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
import os
6-
from io import StringIO
6+
from io import BytesIO, StringIO
77
from pathlib import Path
88

99
from chatmaild.config import read_config
@@ -468,6 +468,14 @@ def __init__(self, mail_domain):
468468
self.mail_domain = mail_domain
469469

470470
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+
)
471479
apt.update(name="apt update", cache_time=24 * 3600)
472480
apt.upgrade(name="upgrade apt packages", auto_remove=True)
473481

0 commit comments

Comments
 (0)