forked from sig_core/toolkit
14 lines
370 B
Bash
14 lines
370 B
Bash
|
#!/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
|