bulk: syncr

This commit is contained in:
Strix 2025-02-26 03:05:18 +01:00
parent f0e039461c
commit 344e1693bd
55 changed files with 1838 additions and 796 deletions

23
crates/common/crate.toml Normal file
View file

@ -0,0 +1,23 @@
name = "common"
description = "Common set of utilities"
[pkgs]
openssh-server = {}
openssh-client = {}
git = {}
netselect = { distros = ["debian", "ubuntu"] }
reflector = { distros = ["arch"] }
[actions]
setup_ssh = ["sh", "./scripts/%"]
reflector = { args = ["sh", "./scripts/setup_pm/%"], distro = ["arch"] }
netselect = { args = [
"sh",
"./scripts/setup_pm/%",
], distro = [
"debian",
"ubuntu",
] }
[super_actions]
pam_wheel = ["sh", "./scripts/%"]

View file

@ -0,0 +1,4 @@
if [ -f /usr/lib/security/pam_wheel.so ] && ! grep -q "# pam_wheel.so added" /etc/pam.d/su; then
echo "auth sufficient pam_wheel.so trust use_uid" > /etc/pam.d/su
echo "# pam_wheel.so added" > /etc/pam.d/su
fi