@@ -201,6 +201,13 @@ function InstallDependenciesRPM {
201201
202202 # Install necessary dependencies for XO build
203203
204+ # CheckOS defines if we fallback to valkey instead of redis
205+ if [[ " $REDIS " == 0 ]]; then
206+ IN_MEMORY_DB=" valkey"
207+ else
208+ IN_MEMORY_DB=" redis"
209+ fi
210+
204211 # only install epel-release if doesn't exist and user allows it to be installed
205212 if [[ -z $( runcmd_stdout " rpm -qa epel-release" ) ]] && [[ " $INSTALL_REPOS " == " true" ]]; then
206213 echo
@@ -211,9 +218,9 @@ function InstallDependenciesRPM {
211218
212219 # install packages
213220 echo
214- printprog " Installing build dependencies, redis server, python3, git, nfs-utils, cifs-utils, lvm2, ntfs-3g, dmidecode patch"
215- runcmd " dnf -y install gcc gcc-c++ make openssl-devel redis libpng-devel python3 git nfs-utils cifs-utils lvm2 ntfs-3g dmidecode patch"
216- printok " Installing build dependencies, redis server, python3, git, nfs-utils, cifs-utils, lvm2, ntfs-3g, dmidecode patch"
221+ printprog " Installing build dependencies, $IN_MEMORY_DB server, python3, git, nfs-utils, cifs-utils, lvm2, ntfs-3g, dmidecode patch"
222+ runcmd " dnf -y install gcc gcc-c++ make openssl-devel $IN_MEMORY_DB libpng-devel python3 git nfs-utils cifs-utils lvm2 ntfs-3g dmidecode patch"
223+ printok " Installing build dependencies, $IN_MEMORY_DB server, python3, git, nfs-utils, cifs-utils, lvm2, ntfs-3g, dmidecode patch"
217224
218225 # only run automated node install if executable not found
219226 if [[ -z $( runcmd_stdout " command -v node" ) ]]; then
@@ -257,9 +264,9 @@ function InstallDependenciesRPM {
257264 fi
258265
259266 echo
260- printprog " Enabling and starting redis service"
261- runcmd " /bin/systemctl enable redis && /bin/systemctl start redis "
262- printok " Enabling and starting redis service"
267+ printprog " Enabling and starting $IN_MEMORY_DB service"
268+ runcmd " /bin/systemctl enable $IN_MEMORY_DB && /bin/systemctl start $IN_MEMORY_DB "
269+ printok " Enabling and starting $IN_MEMORY_DB service"
263270
264271 echo
265272 printprog " Enabling and starting rpcbind service"
@@ -1284,6 +1291,10 @@ function CheckOS {
12841291
12851292 if [[ $( runcmd_stdout " command -v dnf" ) ]]; then
12861293 PKG_FORMAT=" rpm"
1294+ # Since version 10, redis is replaced with valkey
1295+ if [[ $OSVERSION -ge 10 ]]; then
1296+ REDIS=0
1297+ fi
12871298 fi
12881299
12891300 if [[ $( runcmd_stdout " command -v apt-get" ) ]]; then
@@ -1306,18 +1317,18 @@ function CheckOS {
13061317 exit 1
13071318 fi
13081319
1309- if [[ " $OSNAME " == " CentOS" ]] && [[ ! " $OSVERSION " =~ ^(8| 9)$ ]]; then
1310- printfail " Only CentOS 8/9 supported"
1320+ if [[ " $OSNAME " == " CentOS" ]] && [[ ! " $OSVERSION " =~ ^(8| 9| 10 )$ ]]; then
1321+ printfail " Only CentOS 8/9/10 supported"
13111322 exit 1
13121323 fi
13131324
1314- if [[ " $OSNAME " == " Rocky" ]] && [[ ! " $OSVERSION " =~ ^(8| 9)$ ]]; then
1315- printfail " Only Rocky Linux 8/9 supported"
1325+ if [[ " $OSNAME " == " Rocky" ]] && [[ ! " $OSVERSION " =~ ^(8| 9| 10 )$ ]]; then
1326+ printfail " Only Rocky Linux 8/9/10 supported"
13161327 exit 1
13171328 fi
13181329
1319- if [[ " $OSNAME " == " AlmaLinux" ]] && [[ ! " $OSVERSION " =~ ^(8| 9)$ ]]; then
1320- printfail " Only AlmaLinux 8/9 supported"
1330+ if [[ " $OSNAME " == " AlmaLinux" ]] && [[ ! " $OSVERSION " =~ ^(8| 9| 10 )$ ]]; then
1331+ printfail " Only AlmaLinux 8/9/10 supported"
13211332 exit 1
13221333 fi
13231334
0 commit comments