mirror of https://github.com/fairyglade/ly.git
Add FreeBSD-specific PAM file
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
1c05664c85
commit
c4b68364ef
|
@ -243,7 +243,7 @@ fn install_ly(allocator: std.mem.Allocator, patch_map: PatchMap, install_config:
|
|||
var pam_dir = std.fs.cwd().openDir(pam_path, .{}) catch unreachable;
|
||||
defer pam_dir.close();
|
||||
|
||||
try installFile("res/pam.d/ly", pam_dir, pam_path, "ly", .{ .override_mode = 0o644 });
|
||||
try installFile(if (init_system == .freebsd) "res/pam.d/ly-freebsd" else "res/pam.d/ly-linux", pam_dir, pam_path, "ly", .{ .override_mode = 0o644 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#%PAM-1.0
|
||||
|
||||
# OpenPAM (used in FreeBSD) doesn't support prepending "-" for ignoring missing
|
||||
# modules.
|
||||
auth include login
|
||||
account include login
|
||||
password include login
|
||||
session include login
|
Loading…
Reference in New Issue