Skip to content

Commit 6dada01

Browse files
committed
refactor: 🔥 Removed PHP7.4 and 8.0
Marked Ubuntu 20.04, RHEL7, Debian 11, CentOS as unsupported
1 parent adb0795 commit 6dada01

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

idoit-install

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ function identifyOS {
262262

263263
if [[ "$NAME" == "CentOS Linux" && "$VERSION_ID" == "7" ]]; then
264264
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."
267266

268267
OS="centos7"
269268
APACHE_USER="apache"
@@ -278,8 +277,7 @@ function identifyOS {
278277
MEMCACHED_UNIT="memcached"
279278
PHP_FPM_UNIT="php-fpm"
280279
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"
283281

284282
OS="centos8"
285283
APACHE_USER="apache"
@@ -310,7 +308,7 @@ function identifyOS {
310308
PHP_FPM_UNIT="php8.2-fpm"
311309
elif [[ "$NAME" == "Debian GNU/Linux" && "$VERSION" == "11 (bullseye)" ]]; then
312310
export DEBIAN_FRONTEND="noninteractive"
313-
311+
abort "Error: Debian 11 is out-dated. It's not supported anymore. Please upgrade."
314312
OS="debian11"
315313
APACHE_USER="www-data"
316314
APACHE_GROUP="www-data"
@@ -344,8 +342,7 @@ function identifyOS {
344342
MEMCACHED_UNIT="memcached"
345343
PHP_FPM_UNIT="php-fpm"
346344
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."
349346

350347
OS="rhel7"
351348
APACHE_USER="apache"
@@ -424,7 +421,7 @@ function identifyOS {
424421
PHP_FPM_UNIT="php8.1-fpm"
425422
elif [[ "$NAME" == "Ubuntu" && "$VERSION_ID" == "20.04" ]]; then
426423
export DEBIAN_FRONTEND="noninteractive"
427-
424+
abort "Error: Ubuntu 20.04 is out-dated. It's not supported anymore. Please upgrade."
428425
OS="ubuntu2004"
429426
APACHE_USER="www-data"
430427
APACHE_GROUP="www-data"

0 commit comments

Comments
 (0)