@@ -262,8 +262,7 @@ function identifyOS {
262
262
263
263
if [[ " $NAME " == " CentOS Linux" && " $VERSION_ID " == " 7" ]]; then
264
264
log " Warning: This OS is not officially supported by i-doit"
265
- log " Warning: CentOS 7 is out-dated. Please consider to upgrade your OS."
266
- askNoYes " Do you really want to continue?" || cancel
265
+ abort " Warning: CentOS 7 is out-dated. Please consider to upgrade your OS."
267
266
268
267
OS=" centos7"
269
268
APACHE_USER=" apache"
@@ -278,8 +277,7 @@ function identifyOS {
278
277
MEMCACHED_UNIT=" memcached"
279
278
PHP_FPM_UNIT=" php-fpm"
280
279
elif [[ " $NAME " == " CentOS Linux" && " $VERSION_ID " == " 8" ]]; then
281
- log " Warning: This OS is not officially supported by i-doit"
282
- askNoYes " Do you really want to continue?" || cancel
280
+ abort " Warning: This OS is not officially supported by i-doit"
283
281
284
282
OS=" centos8"
285
283
APACHE_USER=" apache"
@@ -310,7 +308,7 @@ function identifyOS {
310
308
PHP_FPM_UNIT=" php8.2-fpm"
311
309
elif [[ " $NAME " == " Debian GNU/Linux" && " $VERSION " == " 11 (bullseye)" ]]; then
312
310
export DEBIAN_FRONTEND=" noninteractive"
313
-
311
+ abort " Error: Debian 11 is out-dated. It's not supported anymore. Please upgrade. "
314
312
OS=" debian11"
315
313
APACHE_USER=" www-data"
316
314
APACHE_GROUP=" www-data"
@@ -344,8 +342,7 @@ function identifyOS {
344
342
MEMCACHED_UNIT=" memcached"
345
343
PHP_FPM_UNIT=" php-fpm"
346
344
elif [[ " $NAME " == " Red Hat Enterprise Linux Server" && " $VERSION_ID " == 7* ]]; then
347
- log " Warning: RHEL 7 is out-dated. Please consider to upgrade your OS."
348
- askNoYes " Do you really want to continue?" || cancel
345
+ abort " Warning: RHEL 7 is out-dated. Please consider to upgrade your OS."
349
346
350
347
OS=" rhel7"
351
348
APACHE_USER=" apache"
@@ -424,7 +421,7 @@ function identifyOS {
424
421
PHP_FPM_UNIT=" php8.1-fpm"
425
422
elif [[ " $NAME " == " Ubuntu" && " $VERSION_ID " == " 20.04" ]]; then
426
423
export DEBIAN_FRONTEND=" noninteractive"
427
-
424
+ abort " Error: Ubuntu 20.04 is out-dated. It's not supported anymore. Please upgrade. "
428
425
OS=" ubuntu2004"
429
426
APACHE_USER=" www-data"
430
427
APACHE_GROUP=" www-data"
0 commit comments