From 4601e1f88cfceb7aea7cf0e3f0c9bf03d391bb0f Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 11 Apr 2024 11:47:34 +0000 Subject: [PATCH] fixin and trixin Signed-off-by: Daniel Hansson --- addons/deSEC/desec.sh | 4 ++-- addons/redis-server-ubuntu.sh | 4 ++-- apps/adminer.sh | 4 ++-- apps/collabora_docker.sh | 8 ++++---- apps/onlyoffice_docker.sh | 4 ++-- apps/opensearch_certs.sh | 2 +- apps/pico_cms.sh | 4 ++-- apps/recognize.sh | 2 +- apps/smbmount.sh | 2 +- apps/talk.sh | 10 +++++----- apps/tmbitwarden.sh | 4 ++-- apps/vaultwarden.sh | 4 ++-- disk/change-to-zfs-mount-generator.sh | 6 +++--- disk/format-chosen.sh | 2 +- disk/format-sdb.sh | 2 +- lets-encrypt/activate-tls.sh | 6 +++--- lib.sh | 18 +++++++++--------- network/trusted.sh | 2 +- nextcloud_install_production.sh | 14 +++++++------- nextcloud_update.sh | 12 ++++++------ not-supported/pi-hole.sh | 6 +++--- not-supported/tpm2-unlock.sh | 2 +- old/face-recognition.sh | 4 ++-- old/format-sda-nuc-server.sh | 2 +- old/previewgenerator.sh | 4 ++-- static/fetch_lib.sh | 4 ++-- static/test_connection.sh | 2 +- static/update.sh | 2 +- torrent/create.sh | 2 +- 29 files changed, 71 insertions(+), 71 deletions(-) diff --git a/addons/deSEC/desec.sh b/addons/deSEC/desec.sh index e2e9934944..d3948d9491 100644 --- a/addons/deSEC/desec.sh +++ b/addons/deSEC/desec.sh @@ -140,9 +140,9 @@ then # Add DNS renewals with the deSEC hoock script print_text_in_color "$ICyan" "Preparing for DNS-renewals..." mkdir -p "$SCRIPTS"/deSEC - curl_to_dir "https://raw.githubusercontent.com/nextcloud/vm/master/addons/deSEC" "hook.sh" "$SCRIPTS"/deSEC + curl_to_dir "https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/addons/deSEC" "hook.sh" "$SCRIPTS"/deSEC chmod +x "$SCRIPTS"/deSEC/hook.sh - curl_to_dir "https://raw.githubusercontent.com/nextcloud/vm/master/addons/deSEC" ".dedynauth" "$SCRIPTS"/deSEC + curl_to_dir "https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/addons/deSEC" ".dedynauth" "$SCRIPTS"/deSEC check_command sed -i "s|DEDYN_TOKEN=.*|DEDYN_TOKEN=$DEDYNAUTHTOKEN|g" "$SCRIPTS"/deSEC/.dedynauth check_command sed -i "s|DEDYN_NAME=.*|DEDYN_NAME=$DEDYNDOMAIN|g" "$SCRIPTS"/deSEC/.dedynauth msg_box "DNS updates for deSEC are now set. This means you don't have to open any ports (80|443) for the renewal process since deSEC TLS renewals will be run with a built in hook. \ diff --git a/addons/redis-server-ubuntu.sh b/addons/redis-server-ubuntu.sh index a727c93451..7a16837dac 100644 --- a/addons/redis-server-ubuntu.sh +++ b/addons/redis-server-ubuntu.sh @@ -16,9 +16,9 @@ debug_mode root_check # Check Ubuntu version -if ! version 18.04 "$DISTRO" 22.04.10 +if ! version 18.04 "$DISTRO" 24.04.10 then - msg_box "Your current Ubuntu version is $DISTRO but must be between 18.04 - 22.04.10 to run this script." + msg_box "Your current Ubuntu version is $DISTRO but must be between 18.04 - 24.04.10 to run this script." msg_box "Please contact us to get support for upgrading your server: https://www.hanssonit.se/#contact https://shop.hanssonit.se/" diff --git a/apps/adminer.sh b/apps/adminer.sh index 92045b7f96..0460fb210b 100644 --- a/apps/adminer.sh +++ b/apps/adminer.sh @@ -56,8 +56,8 @@ curl_to_dir "http://www.adminer.org" "latest.php" "$ADMINERDIR" curl_to_dir "https://raw.githubusercontent.com/Niyko/Hydra-Dark-Theme-for-Adminer/master" "adminer.css" "$ADMINERDIR" ln -s "$ADMINERDIR"/latest.php "$ADMINERDIR"/adminer.php -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/apps/collabora_docker.sh b/apps/collabora_docker.sh index c2d69b3913..ba3987dc8d 100644 --- a/apps/collabora_docker.sh +++ b/apps/collabora_docker.sh @@ -6,7 +6,7 @@ true SCRIPT_NAME="Collabora (Docker)" SCRIPT_EXPLAINER="This script will install the Collabora Office Server bundled with Docker" # shellcheck source=lib.sh -source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # To work with https://github.com/nextcloud/richdocuments/pull/2235 # Check for errors + debug code and abort if something isn't right @@ -57,7 +57,7 @@ NCDOMAIN=$(nextcloud_occ_no_check config:system:get overwrite.cli.url | sed 's|h # Curl the library another time to get the correct https_conf # shellcheck source=lib.sh -source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Get all needed variables from the library nc_update @@ -135,8 +135,8 @@ a2enmod proxy_http a2enmod ssl a2enmod headers -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/apps/onlyoffice_docker.sh b/apps/onlyoffice_docker.sh index c7c5284cdf..df5a1b1e21 100644 --- a/apps/onlyoffice_docker.sh +++ b/apps/onlyoffice_docker.sh @@ -152,8 +152,8 @@ a2enmod proxy_http a2enmod ssl a2enmod headers -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/apps/opensearch_certs.sh b/apps/opensearch_certs.sh index bf80d268af..77f9b82803 100755 --- a/apps/opensearch_certs.sh +++ b/apps/opensearch_certs.sh @@ -40,6 +40,6 @@ mv client.pem \ root-ca-key.pem -t tls_store # openssl 3.0 workaround -if [ "$(lsb_release -sr)" = "20.04" ]; then +if [ "$(lsb_release -sr)" = "22.04" ]; then mv root-ca.srl tls_store fi diff --git a/apps/pico_cms.sh b/apps/pico_cms.sh index af71a43778..16825655d7 100644 --- a/apps/pico_cms.sh +++ b/apps/pico_cms.sh @@ -214,8 +214,8 @@ a2enmod proxy_http a2enmod ssl a2enmod headers -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/apps/recognize.sh b/apps/recognize.sh index b57d5618e8..04b20c212e 100644 --- a/apps/recognize.sh +++ b/apps/recognize.sh @@ -58,7 +58,7 @@ then 4. Install We will run the uninstaller for you now, then exit." - wget https://raw.githubusercontent.com/nextcloud/vm/master/old/face-recognition.sh && bash face-recognition.sh && rm -f face-recognition.sh + wget https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/old/face-recognition.sh && bash face-recognition.sh && rm -f face-recognition.sh exit fi diff --git a/apps/smbmount.sh b/apps/smbmount.sh index 84ef62a122..8ac9e41be8 100644 --- a/apps/smbmount.sh +++ b/apps/smbmount.sh @@ -77,7 +77,7 @@ then msg_box "All $MAX_COUNT slots are occupied. No mounting slots available. Please delete one of the SMB-mounts. If you really want to mount more, you can simply download the smb-mount script \ directly and edit the variable 'MAX_COUNT' to a higher value than $MAX_COUNT by running: -'curl -sLO https://raw.githubusercontent.com/nextcloud/vm/master/apps/smbmount.sh' # Download the script +'curl -sLO https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/apps/smbmount.sh' # Download the script 'nano smbmount.sh' # Edit MAX_COUNT=$MAX_COUNT to your likings and save the file 'sudo bash smbmount.sh' # Execute the script." "$SUBTITLE" return diff --git a/apps/talk.sh b/apps/talk.sh index 5895f1384a..46d7a753a1 100644 --- a/apps/talk.sh +++ b/apps/talk.sh @@ -88,10 +88,10 @@ else removal_popup "$SCRIPT_NAME" fi -# Must be 22.04 -if ! version 20.04 "$DISTRO" 22.04.10 +# Must be 24.04 +if ! version 22.04 "$DISTRO" 24.04.10 then - msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 22.04.10 to install Talk" + msg_box "Your current Ubuntu version is $DISTRO but must be between 22.04 - 24.04.10 to install Talk" msg_box "Please contact us to get support for upgrading your server: https://www.hanssonit.se/#contact https://shop.hanssonit.se/" @@ -398,8 +398,8 @@ mkdir -p /var/www/html/error 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 chown -R www-data:www-data /var/www/html/error -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/apps/tmbitwarden.sh b/apps/tmbitwarden.sh index 3df9346046..a4536196af 100644 --- a/apps/tmbitwarden.sh +++ b/apps/tmbitwarden.sh @@ -240,8 +240,8 @@ a2enmod ssl a2enmod headers a2enmod remoteip -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/apps/vaultwarden.sh b/apps/vaultwarden.sh index 07682cd893..2552c856ef 100644 --- a/apps/vaultwarden.sh +++ b/apps/vaultwarden.sh @@ -122,8 +122,8 @@ a2enmod ssl a2enmod headers a2enmod remoteip -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/disk/change-to-zfs-mount-generator.sh b/disk/change-to-zfs-mount-generator.sh index bfa7ec1efa..5590acc412 100644 --- a/disk/change-to-zfs-mount-generator.sh +++ b/disk/change-to-zfs-mount-generator.sh @@ -3,9 +3,9 @@ # T&M Hansson IT AB © - 2024, https://www.hanssonit.se/ # https://wiki.archlinux.org/index.php/ZFS#Using_zfs-mount-generator -# Tested on Ubuntu 20.04 +# Tested on Ubuntu 22.04 -# This script came to life when we were having issues with importing the ZFS pool (ncdata) on Ubuntu 20.04. +# This script came to life when we were having issues with importing the ZFS pool (ncdata) on Ubuntu 22.04. # After some forum reading and some digging on Github, this is the result. # The intention here is to make the import process more robust, and less prune to fail # Essentially, changing from 'zfs-mount.service' to 'zfs-mount-generator' which by many has been working better. @@ -18,7 +18,7 @@ source /var/scripts/fetch_lib.sh # Check if root root_check -# Needs to be Ubuntu 20.04 and Multiverse +# Needs to be Ubuntu 22.04 and Multiverse check_distro_version check_multiverse diff --git a/disk/format-chosen.sh b/disk/format-chosen.sh index a8f58e95d9..7f9559dba8 100644 --- a/disk/format-chosen.sh +++ b/disk/format-chosen.sh @@ -10,7 +10,7 @@ source /var/scripts/fetch_lib.sh # Check if root root_check -# Needs to be Ubuntu 20.04 and Multiverse +# Needs to be Ubuntu 22.04 and Multiverse check_distro_version check_multiverse diff --git a/disk/format-sdb.sh b/disk/format-sdb.sh index 54c661c112..1c32b80868 100644 --- a/disk/format-sdb.sh +++ b/disk/format-sdb.sh @@ -10,7 +10,7 @@ source /var/scripts/fetch_lib.sh # Check if root root_check -# Needs to be Ubuntu 20.04 and Multiverse +# Needs to be Ubuntu 22.04 and Multiverse check_distro_version check_multiverse diff --git a/lets-encrypt/activate-tls.sh b/lets-encrypt/activate-tls.sh index 8071047e36..572c6eb874 100644 --- a/lets-encrypt/activate-tls.sh +++ b/lets-encrypt/activate-tls.sh @@ -115,15 +115,15 @@ fi # To get the correct version for the Apache conf file check_php -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi # Fix zero file sizes # See https://github.com/nextcloud/server/issues/3056 -if version 22.04 "$DISTRO" 26.04.10 +if version 24.04 "$DISTRO" 26.04.10 then SETENVPROXY="SetEnv proxy-sendcl 1" fi diff --git a/lib.sh b/lib.sh index da64d4217a..89707dde57 100644 --- a/lib.sh +++ b/lib.sh @@ -708,10 +708,10 @@ version(){ [[ $2 != "$h" && $2 != "$t" ]] } -if ! version 20.04 "$DISTRO" 24.04.10 +if ! version 22.04 "$DISTRO" 24.04.10 then print_text_in_color "$IRed" "Your current Ubuntu version is $DISTRO but must be between \ -20.04 - 24.04.10 to run this script." +22.04 - 24.04.10 to run this script." print_text_in_color "$ICyan" "Please contact us for support upgrading your server:" print_text_in_color "$ICyan" "https://www.hanssonit.se/#contact" print_text_in_color "$ICyan" "https://shop.hanssonit.se/" @@ -1067,7 +1067,7 @@ remove_from_trusted_domains() { } check_distro_version() { -# Subṕport Ubuntu 22.0.4 jammy, and Ubuntu 20.04 focal. +# Subṕport Ubuntu 22.0.4 jammy, and Ubuntu 22.04 focal. # Check Ubuntu version if [ "${CODENAME}" == "jammy" ] || [ "${CODENAME}" == "focal" ] @@ -1093,8 +1093,8 @@ You can find the download link here: https://www.ubuntu.com/download/server" exit 1 fi -if ! version 20.04 "$DISTRO" 24.04.10; then - msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 24.04.10 to run this script." +if ! version 22.04 "$DISTRO" 24.04.10; then + msg_box "Your current Ubuntu version is $DISTRO but must be between 22.04 - 24.04.10 to run this script." msg_box "Please contact us to get support for upgrading your server: https://www.hanssonit.se/#contact https://shop.hanssonit.se/product/upgrade-ubuntu-os-between-major-versions/" @@ -1253,7 +1253,7 @@ version(){ [[ $2 != "$h" && $2 != "$t" ]] } -if version 20.04 "$DISTRO" 24.04.10 +if version 22.04 "$DISTRO" 24.04.10 then print_text_in_color "$ICyan" "Testing if network is OK..." if site_200 github.com @@ -1278,7 +1278,7 @@ then fi fi else - msg_box "Your current Ubuntu version is $DISTRO but must be between 20.04 - 24.04.10 to run this script." + msg_box "Your current Ubuntu version is $DISTRO but must be between 22.04 - 24.04.10 to run this script." msg_box "Please contact us to get support for upgrading your server: https://www.hanssonit.se/#contact https://shop.hanssonit.se/" @@ -1769,7 +1769,7 @@ then CONTAINER="$(docker container ls -a | grep "$1" | awk '{print $1}' | tail -1)" if [ -z "$CONTAINER" ] then - # Special solution if the container name is scrambled, then search for the actual name instead + # Special solution if the container name is scrambled, then search for the actual name instead CONTAINER="$(docker container ls -a | grep "$2" | awk '{print $1}' | tail -1)" fi docker stop "$CONTAINER" @@ -2167,7 +2167,7 @@ add_trusted_key_and_repo() { curl -sL "$2"/"$1" | tee -a /etc/apt/keyrings/"$1" echo "deb [signed-by=/etc/apt/keyrings/$1] $3 $4" > "/etc/apt/sources.list.d/$5" apt-get update -q4 & spinner_loading - elif version 20.04 "$DISTRO" 20.04.10 + elif version 22.04 "$DISTRO" 22.04.10 then # Legacy way with apt-key print_text_in_color "$ICyan" "Adding trusted key with apt-key..." diff --git a/network/trusted.sh b/network/trusted.sh index 7fbc3eec04..2977765a6c 100644 --- a/network/trusted.sh +++ b/network/trusted.sh @@ -2,7 +2,7 @@ true SCRIPT_NAME="Set trusted domain" # shellcheck source=lib.sh -source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Removed in NC 26.0.0. diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 254a4af85b..8f476fc1e4 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -41,7 +41,7 @@ SCRIPT_NAME="Nextcloud Install Script" SCRIPT_EXPLAINER="This script is installing all requirements that are needed for Nextcloud to run. It's the first of two parts that are necessary to finish your customized Nextcloud installation." # shellcheck source=lib.sh -source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Check for errors + debug code and abort if something isn't right # 1 = ON @@ -211,7 +211,6 @@ stop_if_installed php7.3-fpm stop_if_installed php8.0-fpm stop_if_installed php8.1-fpm stop_if_installed php8.2-fpm -stop_if_installed php8.3-fpm stop_if_installed mysql-common stop_if_installed mariadb-server @@ -799,7 +798,7 @@ then SetEnv HOME $NCPATH SetEnv HTTP_HOME $NCPATH - + # Disable HTTP TRACE method. TraceEnable off # Disable HTTP TRACK method. @@ -886,7 +885,7 @@ then SetEnv HOME $NCPATH SetEnv HTTP_HOME $NCPATH - + # Disable HTTP TRACE method. TraceEnable off # Disable HTTP TRACK method. @@ -898,8 +897,9 @@ then RequestReadTimeout body=0 - - # Avoid zero byte files (only works in Ubuntu 22.04 -->>) + + # Avoid zero byte files (only works in Ubuntu 24.04 -->>) + # See https://github.com/nextcloud/server/issues/3056 SETENVPROXY="SetEnv proxy-sendcl 1" ### LOCATION OF CERT FILES ### @@ -1045,7 +1045,7 @@ then then # Upgrade Realtek drivers print_text_in_color "$ICyan" "Upgrading Realtek firmware..." - curl_to_dir https://raw.githubusercontent.com/nextcloud/vm/master/network/asusnuc pn51.sh "$SCRIPTS" + curl_to_dir https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/network/asusnuc pn51.sh "$SCRIPTS" bash "$SCRIPTS"/pn51.sh fi fi diff --git a/nextcloud_update.sh b/nextcloud_update.sh index 90b0672d75..7511820729 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -11,7 +11,7 @@ true SCRIPT_NAME="Nextcloud Update Script" # shellcheck source=lib.sh -source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Get all needed variables from the library ncdb @@ -32,8 +32,8 @@ root_check is_process_running apt is_process_running dpkg -# Automatically restart services (Ubuntu 22.04) -if ! version 16.04.10 "$DISTRO" 20.04.10 +# Automatically restart services (Ubuntu 24.04) +if ! version 16.04.10 "$DISTRO" 22.04.10 then if [ ! -f /etc/needrestart/needrestart.conf ] then @@ -364,11 +364,11 @@ fi # Fix Realtek on PN51 if asuspn51 then - if ! version 22.04 "$DISTRO" 22.04.10 + if ! version 24.04 "$DISTRO" 24.04.10 then # Upgrade Realtek drivers print_text_in_color "$ICyan" "Upgrading Realtek firmware..." - curl_to_dir https://raw.githubusercontent.com/nextcloud/vm/master/network/asusnuc pn51.sh "$SCRIPTS" + curl_to_dir https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/network/asusnuc pn51.sh "$SCRIPTS" bash "$SCRIPTS"/pn51.sh fi fi @@ -419,7 +419,7 @@ then rm -f /tmp/channel.xml fi -# Update Redis PHP extension (18.04 --> 20.04 since 16.04 already is deprecated in the top of this script) +# Update Redis PHP extension (18.04 --> 22.04 since 16.04 already is deprecated in the top of this script) print_text_in_color "$ICyan" "Trying to upgrade the Redis PECL extension..." # Check current PHP version diff --git a/not-supported/pi-hole.sh b/not-supported/pi-hole.sh index 40c436d433..52940821f8 100644 --- a/not-supported/pi-hole.sh +++ b/not-supported/pi-hole.sh @@ -220,7 +220,7 @@ mkdir -p "$SCRIPTS" # Insert the new lines into pihole-update.sh cat << PIHOLE_UPDATE > "$SCRIPTS/pihole-update.sh" #!/bin/bash -. <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +. <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin notify_admin_gui "Starting the Pi-hole update." "You will be notified when it is done." # Create backup first @@ -313,8 +313,8 @@ a2enmod ssl a2enmod proxy a2enmod proxy_http -# Only add TLS 1.3 on Ubuntu later than 20.04 -if version 20.04 "$DISTRO" 22.04.10 +# Only add TLS 1.3 on Ubuntu later than 22.04 +if version 22.04 "$DISTRO" 24.04.10 then TLS13="+TLSv1.3" fi diff --git a/not-supported/tpm2-unlock.sh b/not-supported/tpm2-unlock.sh index 997a410d33..bd5e589ae7 100644 --- a/not-supported/tpm2-unlock.sh +++ b/not-supported/tpm2-unlock.sh @@ -8,7 +8,7 @@ SCRIPT_NAME="TPM2 Unlock" SCRIPT_EXPLAINER="This script helps automatically unlocking the root partition during boot \ and securing your GRUB (bootloader)." # shellcheck source=lib.sh -source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Check for errors + debug code and abort if something isn't right # 1 = ON diff --git a/old/face-recognition.sh b/old/face-recognition.sh index a362f5028b..138823c000 100644 --- a/old/face-recognition.sh +++ b/old/face-recognition.sh @@ -100,7 +100,7 @@ then fi # Install requirements -if version 20.04 "$DISTRO" 20.04.10 +if version 22.04 "$DISTRO" 22.04.10 then # https://github.com/matiasdelellis/facerecognition/wiki/PDlib-Installation#ubuntu-focal add_trusted_key_and_repo "repo.gpg.key" \ @@ -109,7 +109,7 @@ then "focal focal" \ "facerecognition-pdlib.list" install_if_not php"$PHPVER"-pdlib -elif version 22.04 "$DISTRO" 22.04.10 +elif version 24.04 "$DISTRO" 24.04.10 then # https://github.com/matiasdelellis/facerecognition/wiki/PDlib-Installation#ubuntu-jammy add_trusted_key_and_repo "repo.gpg.key" \ diff --git a/old/format-sda-nuc-server.sh b/old/format-sda-nuc-server.sh index 88038c1be8..f1099febf8 100644 --- a/old/format-sda-nuc-server.sh +++ b/old/format-sda-nuc-server.sh @@ -10,7 +10,7 @@ source /var/scripts/fetch_lib.sh # Check if root root_check -# Needs to be Ubuntu 20.04 and Multiverse +# Needs to be Ubuntu 22.04 and Multiverse check_distro_version check_multiverse diff --git a/old/previewgenerator.sh b/old/previewgenerator.sh index d329392ae8..0902c97b96 100644 --- a/old/previewgenerator.sh +++ b/old/previewgenerator.sh @@ -124,10 +124,10 @@ then check_php # Install imagick install_if_not php"$PHPVER"-imagick - if version 22.04 "$DISTRO" 22.04.10 + if version 24.04 "$DISTRO" 24.04.10 then install_if_not libmagickcore-6.q16-6-extra - elif version 20.04 "$DISTRO" 20.04.10 + elif version 22.04 "$DISTRO" 22.04.10 then install_if_not libmagickcore-6.q16-3-extra fi diff --git a/static/fetch_lib.sh b/static/fetch_lib.sh index f4cf0f1d11..4768dc870d 100644 --- a/static/fetch_lib.sh +++ b/static/fetch_lib.sh @@ -20,7 +20,7 @@ fi mkdir -p /var/scripts if ! [ -f /var/scripts/lib.sh ] then - if ! curl -sfL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh -o /var/scripts/lib.sh + if ! curl -sfL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh -o /var/scripts/lib.sh then print_text_in_color "$IRed" "You don't seem to have an internet \ connection and the local lib isn't available. Hence you cannot run this script." @@ -28,7 +28,7 @@ connection and the local lib isn't available. Hence you cannot run this script." fi elif ! [ -f /var/scripts/nextcloud-startup-script.sh ] then - curl -sfL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh -o /var/scripts/lib.sh + curl -sfL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh -o /var/scripts/lib.sh fi # shellcheck source=lib.sh diff --git a/static/test_connection.sh b/static/test_connection.sh index c0c48a4340..0c520639a6 100644 --- a/static/test_connection.sh +++ b/static/test_connection.sh @@ -2,7 +2,7 @@ true SCRIPT_NAME="Test Connection (old)" # shellcheck source=lib.sh -source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # This is needed since we removed this from the startup script, or changed name so it can't be downloaded anymore msg_box "You are running an outdated release. diff --git a/static/update.sh b/static/update.sh index 9d98d00e23..1a776319c6 100644 --- a/static/update.sh +++ b/static/update.sh @@ -5,7 +5,7 @@ true SCRIPT_NAME="Update Server + Nextcloud" # shellcheck source=lib.sh -source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Check for errors + debug code and abort if something isn't right # 1 = ON diff --git a/torrent/create.sh b/torrent/create.sh index 0b9d845b18..d17a3570f3 100644 --- a/torrent/create.sh +++ b/torrent/create.sh @@ -11,7 +11,7 @@ # shellcheck source=lib.sh # shellcheck disable=SC2046 -source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/24.04-LTS/lib.sh) # Check for errors + debug code and abort if something isn't right # 1 = ON