summaryrefslogtreecommitdiff
path: root/sysctl.bash
diff options
context:
space:
mode:
authorDenis Chevalier <perso@denischevalier.fr>2026-08-06 16:21:13 +0200
committerDenis Chevalier <perso@denischevalier.fr>2026-08-06 16:26:26 +0200
commitec0933910e2b59b85400533b53c72f783ee735af (patch)
tree4461fe7e15127911d6bc3cc77392b32de377fedd /sysctl.bash
parentbbb90caefc80dad75516d13908b49707fad104e7 (diff)
downloadpostinstall-ec0933910e2b59b85400533b53c72f783ee735af.tar.gz
postinstall-ec0933910e2b59b85400533b53c72f783ee735af.tar.bz2
postinstall-ec0933910e2b59b85400533b53c72f783ee735af.zip
unifying install scripts
Diffstat (limited to 'sysctl.bash')
-rwxr-xr-xsysctl.bash30
1 files changed, 0 insertions, 30 deletions
diff --git a/sysctl.bash b/sysctl.bash
deleted file mode 100755
index fcbadb2..0000000
--- a/sysctl.bash
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/bash
-
-sudo sysctl --system
-
-sudo mkinitcpio -P
-
-sudo systemctl daemon-reload
-
-systemctl --user enable gnome-keyring-daemon.socket
-systemctl --user enable ssh-agent.socket
-sudo systemctl enable keyd.service
-sudo systemctl enable proton.VPN.service
-sudo systemctl enable snapper-cleanup.timer
-sudo systemctl enable snapper-timeline.timer
-
-# fail2ban
-sudo systemctl enable --now fail2ban
-
-# fs trim
-sudo systemctl enable --now fstrim.timer
-
-echo "==> Restarting services..."
-for svc in sshd fail2ban cups; do
- if systemctl is-active --quiet "$svc"; then
- echo " Restarting active service: $svc"
- sudo systemctl restart "$svc"
- else
- echo " Skipping restart for inactive service: $svc"
- fi
-done