File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -316,6 +316,14 @@ if [ "${commandname}" == "INSTALL" ]; then
316
316
fi
317
317
fi
318
318
319
+ # Will warn user if their distro is no longer supported by the vendor.
320
+ if [ -n " ${distrosupport} " ]; then
321
+ if [ " ${distrosupport} " == " unsupported" ]; then
322
+ fn_print_warning_nl " ${distroname} is no longer supported by the vendor. Upgrading is recommended."
323
+ fn_script_log_warn " ${distroname} is no longer supported by the vendor. Upgrading is recommended."
324
+ fi
325
+ fi
326
+
319
327
info_distro.sh
320
328
321
329
if [ ! -f " ${tmpdir} /dependency-no-check.tmp" ]&& [ ! -f " ${datadir} /${distroid} -${distroversioncsv} .csv" ]; then
Original file line number Diff line number Diff line change 80
80
distroversioncsv=" ${distroversion} "
81
81
fi
82
82
83
+ # Check if distro supported by distro vendor.
84
+ if [ " $( command -v distro-info 2> /dev/null) " ]; then
85
+ distrosunsupported=" $( distro-info --unsupported) "
86
+ distrosunsupported_array=( " ${distrosunsupported} " )
87
+ for distrounsupported in " ${distrosunsupported_array[@]} " ; do
88
+ if [ " ${distrounsupported} " == " ${distrocodename} " ]; then
89
+ distrosupport=unsupported
90
+ break
91
+ else
92
+ distrosupport=supported
93
+ fi
94
+ done
95
+ else
96
+ distrosupport=unknown
97
+ fi
98
+
99
+ echo " ${distrosupport} "
83
100
# # Glibc version
84
101
# e.g: 1.17
85
102
glibcversion=" $( ldd --version | sed -n ' 1s/.* //p' ) "
You can’t perform that action at this time.
0 commit comments