dotfiles/crates/00-system/crate.sh
2023-10-14 22:38:14 +02:00

12 lines
No EOL
378 B
Bash

#!/bin/sh
describe="Install stuff on the system!"
scripts="@distro @self"
super_apply() {
cp files/sudoers /etc/sudoers
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
}