dotfiles/crates/00-system/crate.sh
2023-11-16 15:44:56 +01:00

11 lines
No EOL
342 B
Bash

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