toolkit/func/core/pkg_release/30-os-release.sh
2021-07-04 23:50:25 -07:00

13 lines
370 B
Bash
Executable file

#!/bin/bash
r_log "rocky" "Check /etc/os-release stuff"
r_log "rocky" "Verify support directives"
for s in NAME=\"Rocky\ Linux\" \
ID=\"rocky\" \
ROCKY_SUPPORT_PRODUCT=\"Rocky\ Linux\" \
ROCKY_SUPPORT_PRODUCT_VERSION=\"$RL_VER\"; do
if ! grep -q "$s" /etc/os-release; then
r_log "rocky" "Missing string in /etc/os-release"
r_checkExitStatus 1
fi
done