2021-07-05 06:50:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
r_log "rocky" "Check /etc/os-release stuff"
|
|
|
|
|
|
|
|
r_log "rocky" "Verify support directives"
|
|
|
|
for s in NAME=\"Rocky\ Linux\" \
|
|
|
|
ID=\"rocky\" \
|
2022-06-20 23:49:14 +00:00
|
|
|
ROCKY_SUPPORT_PRODUCT=\"Rocky-Linux-$RL_VER\" \
|
2022-06-22 03:29:07 +00:00
|
|
|
ROCKY_SUPPORT_PRODUCT_VERSION=\"$RL_VER\..*\"; do
|
2021-07-05 06:50:25 +00:00
|
|
|
if ! grep -q "$s" /etc/os-release; then
|
2022-06-20 23:49:14 +00:00
|
|
|
r_log "rocky" "Missing string ($s) in /etc/os-release"
|
2021-07-05 06:50:25 +00:00
|
|
|
r_checkExitStatus 1
|
|
|
|
fi
|
|
|
|
done
|