diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-08 09:47:40 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-09-08 11:01:14 +0300 |
commit | 4a0a1824cc0808b84845c0910e470c80d5503334 (patch) | |
tree | 3d1e1f9c19aeb6df3698c02e51bca8a91870d966 /bin | |
parent | 6e63b55274b41753de9f9e008a052afb1ade8a73 (diff) |
backend: is_active() functionalityv0.26.20
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/nextcloudpi-config | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nextcloudpi-config b/bin/nextcloudpi-config index a21336a8..a631b8be 100755 --- a/bin/nextcloudpi-config +++ b/bin/nextcloudpi-config @@ -34,11 +34,12 @@ function nextcloud-config() [[ $? -eq $DIALOG_OK ]] && ncp-update while true; do + # fill options local LIST=() for item in $CONFDIR/*.sh; do DESC=$( grep "DESCRIPTION=" "$item" | sed 's|^DESCRIPTION="||;s|"$||' ) - grep -q "^ACTIVE_=yes" "$item" && local ON="✓" || local ON=" " + is_active_script "$item" && local ON="✓" || local ON=" " LIST+=( "$ON $( basename "$item" .sh )" "$DESC" ) done |