toolkit/func/core/pkg_release/40-system-release.sh

9 lines
304 B
Bash
Raw Permalink Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "rocky" "Check /etc/rocky-release symbolic links"
grep -q "Rocky" /etc/rocky-release || r_checkExitStatus 1
(file /etc/redhat-release | grep -qE "symbolic link to .?rocky-release.?") && \
(file /etc/system-release | grep -qE "symbolic link to .?rocky-release.?")
r_checkExitStatus $?