toolkit/func/core/pkg_shadow-utils/10-files-verify.sh

11 lines
497 B
Bash
Raw Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "shadow" "Verify the shadow-utils files exist"
r_log "shadow" "Verify /etc/default"
[ -d "/etc/default" ] || { r_log "shadow" "Missing /etc/default"; r_checkExitStatus 1; }
r_log "shadow" "Verify /etc/default/useradd"
[ -e "/etc/default/useradd" ] || { r_log "shadow" "Missing /etc/default/useradd"; r_checkExitStatus 1; }
r_log "shadow" "Verify /etc/login.defs"
[ -e "/etc/login.defs" ] || { r_log "shadow" "Missing /etc/login.defs"; r_checkExitStatus 1; }
r_checkExitStatus 0