Skip to content

Commit bdf221b

Browse files
author
Daniel Hansson
committed
PHPVER and OS version
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 75b3276 commit bdf221b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

addons/redis-server-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ debug_mode
1717
root_check
1818

1919
# Check Ubuntu version
20-
if ! version 18.04 "$DISTRO" 22.04.10
20+
if ! version 20.04 "$DISTRO" 24.04.10
2121
then
22-
msg_box "Your current Ubuntu version is $DISTRO but must be between 18.04 - 22.04.10 to run this script."
22+
msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 24.04.10 to run this script."
2323
msg_box "Please contact us to get support for upgrading your server:
2424
https://www.hanssonit.se/#contact
2525
https://shop.hanssonit.se/"

lib.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ NGINX_CONF="/etc/nginx/nginx.conf"
130130
NGINX_DEF="$SITES_AVAILABLE/default"
131131

132132
# PHP-FPM
133-
PHPVER=8.1
133+
PHPVER=8.4
134134
PHP_FPM_DIR=/etc/php/$PHPVER/fpm
135135
PHP_INI=$PHP_FPM_DIR/php.ini
136136
PHP_POOL_DIR=$PHP_FPM_DIR/pool.d
@@ -485,10 +485,10 @@ version(){
485485

486486
[[ $2 != "$h" && $2 != "$t" ]]
487487
}
488-
if ! version 20.04 "$DISTRO" 22.04.10
488+
if ! version 20.04 "$DISTRO" 24.04.10
489489
then
490490
print_text_in_color "$IRed" "Your current Ubuntu version is $DISTRO but must be between \
491-
20.04 - 22.04.10 to run this script."
491+
20.04 - 24.04.10 to run this script."
492492
print_text_in_color "$ICyan" "Please contact us to get support for upgrading your server:"
493493
print_text_in_color "$ICyan" "https://www.hanssonit.se/#contact"
494494
print_text_in_color "$ICyan" "https://shop.hanssonit.se/"
@@ -711,8 +711,8 @@ You can find the download link here: https://www.ubuntu.com/download/server"
711711
exit 1
712712
fi
713713

714-
if ! version 20.04 "$DISTRO" 22.04.10; then
715-
msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 22.04.10 to run this script."
714+
if ! version 20.04 "$DISTRO" 24.04.10; then
715+
msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 24.04.10 to run this script."
716716
msg_box "Please contact us to get support for upgrading your server:
717717
https://www.hanssonit.se/#contact
718718
https://shop.hanssonit.se/"
@@ -807,7 +807,7 @@ version(){
807807

808808
[[ $2 != "$h" && $2 != "$t" ]]
809809
}
810-
if version 20.04 "$DISTRO" 22.04.10
810+
if version 20.04 "$DISTRO" 24.04.10
811811
then
812812
print_text_in_color "$ICyan" "Testing if network is OK..."
813813
if ! netplan apply
@@ -828,7 +828,7 @@ then
828828
fi
829829
fi
830830
else
831-
msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 22.04.6 to run this script."
831+
msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 24.04.6 to run this script."
832832
msg_box "Please contact us to get support for upgrading your server:
833833
https://www.hanssonit.se/#contact
834834
https://shop.hanssonit.se/"

static/wordpress_update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ https://shop.hanssonit.se/product/premium-support-per-30-minutes/"
3434
fi
3535
fi
3636

37-
# Ubuntu 18.04 is deprecated
37+
# Ubuntu 20.04 is deprecated
3838
check_distro_version
3939

4040
# Make sure VMLOGS are present
@@ -75,7 +75,7 @@ then
7575
fi
7676
fi
7777

78-
# Update Redis PHP extension (20.04 --> 20.04 since 18.04 already is deprecated in the top of this script)
78+
# Update Redis PHP extension (20.04 --> 20.04 since 20.04 already is deprecated in the top of this script)
7979
print_text_in_color "$ICyan" "Trying to upgrade the Redis PECL extension..."
8080

8181
# Check current PHP version

0 commit comments

Comments
 (0)