Make resilient towards it already being the same file

This commit is contained in:
David Heinemeier Hansson 2025-08-19 13:51:29 +02:00
parent 12ab446715
commit ee1ee526d7

View File

@ -30,7 +30,7 @@ sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1
sudo cp ~/.local/share/omarchy/default/systemd/resolved.conf /etc/systemd/
# Ensure /etc/resolv.conf is symlinked to systemd-resolved's stub resolver
sudo ln -snf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
sudo ln -sfn /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf 2>/dev/null || true
# Solve common flakiness with SSH
echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf