Skip to content

Commit a91f71a

Browse files
committed
Revert deletion of server.shell block
1 parent 9e2ff31 commit a91f71a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Universal/PyInfra/ArchServer/deploy.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def install_packages():
4848
packages = ["linux-lts-headers", "pacman-contrib", "base-devel", "dmidecode",
4949
"dkms", "amd-ucode", "linux-firmware", "lm_sensors", "curl",
5050
"e2fsprogs", "exfatprogs", "iproute2", "mtr", "lsof", "smartmontools",
51-
"udisks2", "dosfstools", "less", "wget"],
51+
"udisks2", "dosfstools", "less", "wget", "inetutils"],
5252
present = True,
5353
update = False,
5454
_sudo = True,
@@ -224,11 +224,17 @@ def deployment_cleanup():
224224
_sudo = True
225225
)
226226

227+
server.shell(
228+
name = "Removing `paru-src` leftovers",
229+
commands = [f"rm /home/{host.get_fact(User)}/paru -r"],
230+
_sudo = True
231+
)
232+
227233
server.shell(
228234
name = "Adding hostname & IP to login screen",
229235
commands = [
230236
"echo '===SERVER INFORMATION===' >> /etc/issue",
231-
'printf "Hostname: \\cdx" >> /etc/issue',
237+
'printf "Hostname: \\cdx" >> /etc/issue', # PyInfra changes \\n to \n (newline), this is a bypass which will be fix with `sed`
232238
"echo -e '\nIPv4: \\4\n' >> /etc/issue",
233239
"sed -i 's/cdx/n/' /etc/issue"
234240
],

0 commit comments

Comments
 (0)