diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-04-27 09:12:51 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-04-27 19:49:22 +0300 |
commit | 64bf42f2f3dd18f294d8626aaf412c90760277f0 (patch) | |
tree | 4b431bc211c34d75e5bec7ec7abee2c2b0e5c5d5 /etc/library.sh | |
parent | fb994adc457588d0361797dfe3a5f0e5a09be230 (diff) |
added show_info() to nextcloudpi-configv0.8.1
Diffstat (limited to 'etc/library.sh')
-rwxr-xr-x | etc/library.sh | 12 |
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() { ( |