Skip to content

Commit 5d576f8

Browse files
committed
Upgrade OS --> 26.04
- Bump supported Ubuntu range to 24.04 - 26.04 (Resolute Raccoon) - PHP 8.3 -> 8.5, PostgreSQL 16 -> 18 (defaults on 26.04) - Centralize version checks in lib.sh: SUPPORTED_VERSION_MIN/MAX, LATEST_VERSION (derived), SUPPORTED_CODENAMES — single source of truth - Make check_php() fully dynamic (regex on `php -v`, /etc/php fallback) - Replace hardcoded stop_if_installed lists with brace-expansion loops covering php7.0-7.9, php8.0-8.9 and postgresql-9.x through postgresql-30 Signed-off-by: enoch85 <mailto@danielhansson.nu>
1 parent 1c8dc01 commit 5d576f8

20 files changed

Lines changed: 90 additions & 112 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Server installation. Simplified. :cloud:
1717
--------------------
1818

1919
## Dependencies:
20-
(Ubuntu Server 24.04 LTS *minimal* 64-bit)
20+
(Ubuntu Server 26.04 LTS *minimal* 64-bit)
2121
<br>
22-
(Linux Kernel: 6.8)
22+
(Linux Kernel: 7.0)
2323
- Apache 2.4
24-
- PostgreSQL 16
25-
- PHP-FPM 8.3
24+
- PostgreSQL 18
25+
- PHP-FPM 8.5
2626
- Redis Memcache (Ubuntu package)
2727
- PHP-igbinary (Ubuntu package)
2828
- PHP-smbclient (Ubuntu package)

addons/redis-server-ubuntu.sh

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

1818
# Check Ubuntu version
19-
if ! version 18.04 "$DISTRO" 24.04.10
19+
if ! version 18.04 "$DISTRO" "$SUPPORTED_VERSION_MAX"
2020
then
21-
msg_box "Your current Ubuntu version is $DISTRO but must be between 18.04 - 24.04.10 to run this script."
21+
msg_box "Your current Ubuntu version is $DISTRO but must be between 18.04 - $SUPPORTED_VERSION_MAX to run this script."
2222
msg_box "Please contact us to get support for upgrading your server:
2323
https://www.hanssonit.se/#contact
2424
https://shop.hanssonit.se/"

apps/adminneo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ fi
9292

9393
print_text_in_color "$IGreen" "AdminNeo ${ADMINNEO_VERSION} successfully downloaded!"
9494

95-
# Only add TLS 1.3 on Ubuntu later than 22.04
96-
if version 22.04 "$DISTRO" 24.04.10
95+
# Only add TLS 1.3 on supported Ubuntu releases
96+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
9797
then
9898
TLS13="+TLSv1.3"
9999
fi

apps/collabora_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ a2enmod proxy_http
135135
a2enmod ssl
136136
a2enmod headers
137137

138-
# Only add TLS 1.3 on Ubuntu later than 22.04
139-
if version 22.04 "$DISTRO" 24.04.10
138+
# Only add TLS 1.3 on supported Ubuntu releases
139+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
140140
then
141141
TLS13="+TLSv1.3"
142142
fi

apps/onlyoffice_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ a2enmod proxy_http
152152
a2enmod ssl
153153
a2enmod headers
154154

155-
# Only add TLS 1.3 on Ubuntu later than 22.04
156-
if version 22.04 "$DISTRO" 24.04.10
155+
# Only add TLS 1.3 on supported Ubuntu releases
156+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
157157
then
158158
TLS13="+TLSv1.3"
159159
fi

apps/pico_cms.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ a2enmod proxy_http
214214
a2enmod ssl
215215
a2enmod headers
216216

217-
# Only add TLS 1.3 on Ubuntu later than 22.04
218-
if version 22.04 "$DISTRO" 24.04.10
217+
# Only add TLS 1.3 on supported Ubuntu releases
218+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
219219
then
220220
TLS13="+TLSv1.3"
221221
fi

apps/smbmount.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,14 @@ We please you to do the math yourself if the number is high enough for your setu
350350
# Get installed php version
351351
check_php
352352
# Enable Inotify
353-
if [ ! -f $PHP_MODS_DIR/inotify.ini ]
353+
if [ ! -f "$PHP_MODS_DIR"/inotify.ini ]
354354
then
355-
touch $PHP_MODS_DIR/inotify.ini
355+
touch "$PHP_MODS_DIR"/inotify.ini
356356
fi
357-
if ! grep -qFx extension=inotify.so $PHP_MODS_DIR/inotify.ini
357+
if ! grep -qFx extension=inotify.so "$PHP_MODS_DIR"/inotify.ini
358358
then
359-
echo "# PECL inotify" > $PHP_MODS_DIR/inotify.ini
360-
echo "extension=inotify.so" >> $PHP_MODS_DIR/inotify.ini
359+
echo "# PECL inotify" > "$PHP_MODS_DIR"/inotify.ini
360+
echo "extension=inotify.so" >> "$PHP_MODS_DIR"/inotify.ini
361361
check_command phpenmod -v ALL inotify
362362
fi
363363

apps/talk.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ else
9393
removal_popup "$SCRIPT_NAME"
9494
fi
9595

96-
# Must be 24.04
97-
if ! version 22.04 "$DISTRO" 24.04.10
96+
# Must be on a supported Ubuntu release
97+
if ! version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
9898
then
99-
msg_box "Your current Ubuntu version is $DISTRO but must be between 22.04 - 24.04.10 to install Talk"
99+
msg_box "Your current Ubuntu version is $DISTRO but must be between $SUPPORTED_VERSION_MIN - $SUPPORTED_VERSION_MAX to install Talk"
100100
msg_box "Please contact us to get support for upgrading your server:
101101
https://www.hanssonit.se/#contact
102102
https://shop.hanssonit.se/"
@@ -444,8 +444,8 @@ mkdir -p /var/www/html/error
444444
echo "Hi there! :) If you see this page, the Apache2 proxy for $SCRIPT_NAME is up and running." > /var/www/html/error/404_proxy.html
445445
chown -R www-data:www-data /var/www/html/error
446446

447-
# Only add TLS 1.3 on Ubuntu later than 22.04
448-
if version 22.04 "$DISTRO" 24.04.10
447+
# Only add TLS 1.3 on supported Ubuntu releases
448+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
449449
then
450450
TLS13="+TLSv1.3"
451451
fi

apps/tmbitwarden.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ a2enmod ssl
240240
a2enmod headers
241241
a2enmod remoteip
242242

243-
# Only add TLS 1.3 on Ubuntu later than 22.04
244-
if version 22.04 "$DISTRO" 24.04.10
243+
# Only add TLS 1.3 on supported Ubuntu releases
244+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
245245
then
246246
TLS13="+TLSv1.3"
247247
fi

apps/vaultwarden.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ a2enmod ssl
122122
a2enmod headers
123123
a2enmod remoteip
124124

125-
# Only add TLS 1.3 on Ubuntu later than 22.04
126-
if version 22.04 "$DISTRO" 24.04.10
125+
# Only add TLS 1.3 on supported Ubuntu releases
126+
if version "$SUPPORTED_VERSION_MIN" "$DISTRO" "$SUPPORTED_VERSION_MAX"
127127
then
128128
TLS13="+TLSv1.3"
129129
fi

0 commit comments

Comments
 (0)