Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pico_cms.sh')
-rw-r--r--apps/pico_cms.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/apps/pico_cms.sh b/apps/pico_cms.sh
index 3dc8f95a..81c47023 100644
--- a/apps/pico_cms.sh
+++ b/apps/pico_cms.sh
@@ -18,41 +18,6 @@ debug_mode
# Check if root
root_check
-# TODO: remove both functions with NC21.0.3 release
-add_to_trusted_domains() {
- local element="$1"
- local count=0
- print_text_in_color "$ICyan" "Adding $element to trusted domains..."
- while [ "$count" -le 10 ]
- do
- if [ "$(nextcloud_occ_no_check config:system:get trusted_domains "$count")" = "$element" ]
- then
- break
- elif [ -z "$(nextcloud_occ_no_check config:system:get trusted_domains "$count")" ]
- then
- nextcloud_occ_no_check config:system:set trusted_domains "$count" --value="$element"
- break
- else
- count=$((count+1))
- fi
- done
-}
-remove_from_trusted_domains() {
- local element="$1"
- local count=0
- print_text_in_color "$ICyan" "Removing $element from trusted domains..."
- while [ "$count" -lt 10 ]
- do
- if [ "$(nextcloud_occ_no_check config:system:get trusted_domains "$count")" = "$element" ]
- then
- nextcloud_occ_no_check config:system:delete trusted_domains "$count"
- break
- else
- count=$((count+1))
- fi
- done
-}
-
# Nextcloud Main Domain
NCDOMAIN=$(nextcloud_occ_no_check config:system:get overwrite.cli.url | sed 's|https://||;s|/||')