dotfiles/crates/00-system/crate.sh

12 lines
378 B
Bash
Raw Normal View History

2023-10-14 22:38:12 +02:00
#!/bin/sh
describe="Install stuff on the system!"
scripts="@distro @self"
2023-10-14 22:38:12 +02:00
super_apply() {
cp files/sudoers /etc/sudoers
2023-10-14 22:38:14 +02:00
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
done
2023-10-14 22:38:12 +02:00
}