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

9 lines
304 B
Bash
Raw Normal View History

2024-08-15 03:52:26 +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 $?