diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-10-03 22:09:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 22:09:15 +0300 |
commit | f251b0354996674b1d8ea148f68eccec730323ca (patch) | |
tree | dd26d793d0492ffd9b6e1e363c3051dd8f32d694 /addons | |
parent | da449199f07fc10adf75bbe5965e02bff05a7d92 (diff) |
go live with fetch lib (#1520)
Signed-off-by: enoch85 <github@hanssonit.se>
Diffstat (limited to 'addons')
-rw-r--r-- | addons/automatic_updates.sh | 2 | ||||
-rw-r--r-- | addons/locales.sh | 4 | ||||
-rw-r--r-- | addons/locate_mirror.sh | 2 | ||||
-rw-r--r-- | addons/redis-server-ubuntu.sh | 2 | ||||
-rw-r--r-- | addons/security.sh | 2 | ||||
-rw-r--r-- | addons/smtp-mail.sh | 2 |
6 files changed, 5 insertions, 9 deletions
diff --git a/addons/automatic_updates.sh b/addons/automatic_updates.sh index 17e364f0..f328c5a7 100644 --- a/addons/automatic_updates.sh +++ b/addons/automatic_updates.sh @@ -6,7 +6,7 @@ true SCRIPT_NAME="Automatic Updates" # shellcheck source=lib.sh -. <(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/master/lib.sh) print_text_in_color "$ICyan" "Configuring automatic updates..." diff --git a/addons/locales.sh b/addons/locales.sh index 93c8056f..63918083 100644 --- a/addons/locales.sh +++ b/addons/locales.sh @@ -8,10 +8,6 @@ SCRIPT_NAME="Locales" # shellcheck source=lib.sh source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) -### TODO Remove this after some releases -# Download fetch_lib.sh to be able to use it -download_script STATIC fetch_lib - # Check for errors + debug code and abort if something isn't right # 1 = ON # 0 = OFF diff --git a/addons/locate_mirror.sh b/addons/locate_mirror.sh index aea8bdf2..4736ffc7 100644 --- a/addons/locate_mirror.sh +++ b/addons/locate_mirror.sh @@ -6,7 +6,7 @@ true SCRIPT_NAME="Locate Mirror" # shellcheck source=lib.sh -. <(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/master/lib.sh) # Must be root root_check diff --git a/addons/redis-server-ubuntu.sh b/addons/redis-server-ubuntu.sh index 1ca36fbf..80cbbe07 100644 --- a/addons/redis-server-ubuntu.sh +++ b/addons/redis-server-ubuntu.sh @@ -3,7 +3,7 @@ true SCRIPT_NAME="Redis Server Ubuntu" # shellcheck source=lib.sh -. <(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/master/lib.sh) # T&M Hansson IT AB © - 2020, https://www.hanssonit.se/ diff --git a/addons/security.sh b/addons/security.sh index 584a6eb4..e4a23db3 100644 --- a/addons/security.sh +++ b/addons/security.sh @@ -7,7 +7,7 @@ true SCRIPT_NAME="Setup Extra Security" # shellcheck source=lib.sh -. <(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/master/lib.sh) # Check for errors + debug code and abort if something isn't right # 1 = ON diff --git a/addons/smtp-mail.sh b/addons/smtp-mail.sh index f056a67a..729fe24d 100644 --- a/addons/smtp-mail.sh +++ b/addons/smtp-mail.sh @@ -8,7 +8,7 @@ SCRIPT_NAME="SMTP Relay with msmtp" SCRIPT_EXPLAINER="This script will setup an SMTP Relay (Mail Server) in your Nextcloud Server \ that will be used to send emails about failed cronjob's and such." # shellcheck source=lib.sh -. <(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/master/lib.sh) # Check for errors + debug code and abort if something isn't right # 1 = ON |