Skip to content

Commit b41aa7b

Browse files
committed
By default seems there is no /etc/sysctl.conf so you will get this
error: sysctl: cannot open "/etc/sysctl.conf": No such file or directory
1 parent 58b87be commit b41aa7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Proxmox-8.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ proxmox-boot-tool refresh
8787
# Kernel hardening
8888
curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/modprobe.d/server-blacklist.conf | tee /etc/modprobe.d/server-blacklist.conf > /dev/null
8989
curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sysctl.d/99-server.conf | tee /etc/sysctl.d/99-server.conf > /dev/null
90-
sysctl -p
90+
sysctl -p /etc/sysctl.d
9191

9292
# Rebuild initramfs
9393
update-initramfs -u
@@ -112,4 +112,4 @@ curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/refs/hea
112112
tuned-adm profile virtual-host
113113

114114
# Enable fstrim.timer
115-
systemctl enable --now fstrim.timer
115+
systemctl enable --now fstrim.timer

0 commit comments

Comments
 (0)