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:
authornachoparker <nacho@ownyourbits.com>2017-04-27 09:12:51 +0300
committernachoparker <nacho@ownyourbits.com>2017-04-27 19:49:22 +0300
commit64bf42f2f3dd18f294d8626aaf412c90760277f0 (patch)
tree4b431bc211c34d75e5bec7ec7abee2c2b0e5c5d5 /etc/library.sh
parentfb994adc457588d0361797dfe3a5f0e5a09be230 (diff)
added show_info() to nextcloudpi-configv0.8.1
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()
{
(