Skip to content

Commit a41ccae

Browse files
committed
Move PyInfra Scripts to Universal & ArchServer Deploy v1.3-dev
1 parent f6fb528 commit a41ccae

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

Linux/Unattended Server Deployments/PyInfra/ArchServer/deploy.py renamed to Universal/PyInfra/ArchServer/deploy.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def install_packages():
5151
name = "Installing system packages",
5252
packages = ["linux-lts-headers", "pacman-contrib", "base-devel", "dmidecode", "dkms", "amd-ucode",
5353
"linux-firmware", "lm_sensors", "curl", "e2fsprogs", "exfatprogs", "iproute2", "mtr",
54-
"lsof", "smartmontools", "udisks2", "dosfstools"],
54+
"lsof", "smartmontools", "udisks2", "dosfstools", "less"],
5555
present = True,
5656
update = False,
5757
_sudo = True,
@@ -102,6 +102,12 @@ def install_packages():
102102

103103
@deploy("AUR Configuration Support")
104104
def preparing_aur_support():
105+
server.shell(
106+
name = "Fixing ownership of the `.local` user folder",
107+
commands = [f"chown {host.get_fact(User)}:{host.get_fact(User)} /home/{host.get_fact(User)}/.local -R"],
108+
_sudo = True
109+
)
110+
105111
server.shell(
106112
name = "Installing rust toolchain",
107113
commands = ["rustup default stable"],
@@ -156,11 +162,6 @@ def service_configuration():
156162
_sudo = True
157163
)
158164

159-
server.shell(
160-
name = "Installing oh-my-zsh",
161-
commands = [f"sh -c $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) --unattended"],
162-
)
163-
164165
@deploy("System service management")
165166
def system_services():
166167
systemd.service(
@@ -224,12 +225,6 @@ def session_cleanup():
224225
commands = [f"rm /home/{host.get_fact(User)}/paru -r"],
225226
_sudo = True
226227
)
227-
228-
server.shell(
229-
name = "Removing backups from `/`",
230-
commands = ["rm *.tgz"],
231-
_sudo = True
232-
)
233228

234229
#
235230
## Deployment execution tree

0 commit comments

Comments
 (0)