diff options
author | szaimen <szaimen@e.mail.de> | 2021-07-09 16:21:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 16:21:18 +0300 |
commit | c262de4eec2158cef8191386e6abd22e0272b182 (patch) | |
tree | f2bc7ba42314992656ae99e7596fcdc2f3551611 /apps/pico_cms.sh | |
parent | 89e77e3d817bd42ace213a66e09b0c3bb25d68d8 (diff) |
Preparations for the next NC22.0.0 NcVM release (#1997)22.0.0
Diffstat (limited to 'apps/pico_cms.sh')
-rw-r--r-- | apps/pico_cms.sh | 35 |
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|/||') |