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

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'etc/library.sh')
-rwxr-xr-xetc/library.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/library.sh b/etc/library.sh
index 95948c20..a3330fce 100755
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -215,6 +215,18 @@ function install_script()
)
}
+function info_script()
+{
+ (
+ local SCRIPT=$1
+ cd /usr/local/etc/nextcloudpi-config.d/
+ unset show_info
+ source ./$SCRIPT
+ [[ $( type -t show_info ) == function ]] || return 0
+ [[ $( type -t show_info ) == function ]] && show_info
+ )
+}
+
function configure_script()
{
(