Skip to content

Commit 43cec5d

Browse files
authored
Merge pull request #26 from sudofox/master
More accurate EA3/EA4 detection
2 parents 9f14028 + 19269d7 commit 43cec5d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

EasyApache/installer.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,8 @@ function install_ea4 {
9595
# Main
9696
#
9797

98-
#
99-
# Check which version of cPanel we have
100-
#
101-
CPANEL_VERSION=`/usr/local/cpanel/cpanel -V | sed "s/\..*$//"`
102-
103-
# Version 58 and up have Easy Apache 4
104-
if [ "$CPANEL_VERSION" -gt "57" ]; then
98+
# Check if EasyApache 4 is enabled
99+
if [ -e "/etc/cpanel/ea4/is_ea4" ]; then
105100
install_ea4
106101
else
107102
install_ea3

0 commit comments

Comments
 (0)