File tree Expand file tree Collapse file tree 6 files changed +43
-6
lines changed
Expand file tree Collapse file tree 6 files changed +43
-6
lines changed Original file line number Diff line number Diff line change 22true
33SCRIPT_NAME=" Set trusted domain"
44# shellcheck source=lib.sh
5- source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh)
5+ if [ -f /var/scripts/fetch_lib.sh ]
6+ then
7+ # shellcheck source=static/fetch_lib.sh
8+ source /var/scripts/fetch_lib.sh
9+ elif ! source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/static/fetch_lib.sh)
10+ then
11+ source <( curl -sL https://cdn.statically.io/gh/nextcloud/vm/main/static/fetch_lib.sh)
12+ fi
613
714# Removed in NC 26.0.0.
815
Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ SCRIPT_NAME="Nextcloud Install Script"
3939SCRIPT_EXPLAINER=" This script is installing all requirements that are needed for Nextcloud to run.
4040It's the first of two parts that are necessary to finish your customized Nextcloud installation."
4141# shellcheck source=lib.sh
42- source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh)
42+ if ! source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/static/fetch_lib.sh)
43+ then
44+ source <( curl -sL https://cdn.statically.io/gh/nextcloud/vm/main/static/fetch_lib.sh)
45+ fi
4346
4447# Check for errors + debug code and abort if something isn't right
4548# 1 = ON
Original file line number Diff line number Diff line change @@ -226,7 +226,13 @@ mkdir -p "$SCRIPTS"
226226# Insert the new lines into pihole-update.sh
227227cat << PIHOLE_UPDATE > "$SCRIPTS /pihole-update.sh"
228228#!/bin/bash
229- . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh)
229+ if [ -f /var/scripts/fetch_lib.sh ]
230+ then
231+ source /var/scripts/fetch_lib.sh
232+ elif ! source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/static/fetch_lib.sh)
233+ then
234+ source <(curl -sL https://cdn.statically.io/gh/nextcloud/vm/main/static/fetch_lib.sh)
235+ fi
230236PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
231237notify_admin_gui "Starting the Pi-hole update." "You will be notified when it is done."
232238# Create backup first
Original file line number Diff line number Diff line change 22true
33SCRIPT_NAME=" Test Connection (old)"
44# shellcheck source=lib.sh
5- source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh)
5+ if [ -f /var/scripts/fetch_lib.sh ]
6+ then
7+ # shellcheck source=static/fetch_lib.sh
8+ source /var/scripts/fetch_lib.sh
9+ elif ! source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/static/fetch_lib.sh)
10+ then
11+ source <( curl -sL https://cdn.statically.io/gh/nextcloud/vm/main/static/fetch_lib.sh)
12+ fi
613
714# This is needed since we removed this from the startup script, or changed name so it can't be downloaded anymore
815msg_box " You are running an outdated release.
Original file line number Diff line number Diff line change 55true
66SCRIPT_NAME=" Update Server + Nextcloud"
77# shellcheck source=lib.sh
8- source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh)
8+ if [ -f /var/scripts/fetch_lib.sh ]
9+ then
10+ # shellcheck source=static/fetch_lib.sh
11+ source /var/scripts/fetch_lib.sh
12+ elif ! source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/static/fetch_lib.sh)
13+ then
14+ source <( curl -sL https://cdn.statically.io/gh/nextcloud/vm/main/static/fetch_lib.sh)
15+ fi
916
1017# Check for errors + debug code and abort if something isn't right
1118# 1 = ON
Original file line number Diff line number Diff line change 1111
1212# shellcheck source=lib.sh
1313# shellcheck disable=SC2046
14- source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/lib.sh)
14+ if [ -f /var/scripts/fetch_lib.sh ]
15+ then
16+ # shellcheck source=static/fetch_lib.sh
17+ source /var/scripts/fetch_lib.sh
18+ elif ! source <( curl -sL https://raw.githubusercontent.com/nextcloud/vm/main/static/fetch_lib.sh)
19+ then
20+ source <( curl -sL https://cdn.statically.io/gh/nextcloud/vm/main/static/fetch_lib.sh)
21+ fi
1522
1623# Check for errors + debug code and abort if something isn't right
1724# 1 = ON
You canβt perform that action at this time.
0 commit comments