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/nextcloudpi-config.d/nc-scan-auto.sh | |
parent | fb994adc457588d0361797dfe3a5f0e5a09be230 (diff) |
added show_info() to nextcloudpi-configv0.8.1
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-scan-auto.sh')
-rwxr-xr-x | etc/nextcloudpi-config.d/nc-scan-auto.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/nextcloudpi-config.d/nc-scan-auto.sh b/etc/nextcloudpi-config.d/nc-scan-auto.sh index 0f495959..285d025f 100755 --- a/etc/nextcloudpi-config.d/nc-scan-auto.sh +++ b/etc/nextcloudpi-config.d/nc-scan-auto.sh @@ -17,16 +17,19 @@ SCANINTERVAL_=60 DESCRIPTION="Periodically scan NC for externally modified files" -configure() +show_info() { - whiptail --msgbox \ + whiptail --yesno \ --backtitle "NextCloudPi configuration" \ --title "Instructions for auto synchronization" \ "Set the time in minutes in SCANINTERVAL. \n >>> If there are too many files this can greatly affect performance. <<< \n SCANINTERVAL=0 will disable periodic synchronization." \ 20 90 +} +configure() +{ [[ $SCANINTERVAL_ == 0 ]] && { systemctl stop nc-scan.timer systemctl disable nc-scan.timer |