[configuration/persistence.md]Update persistence.md (#654)

Update the "rules_refresh.sh " script to a working one. There was a high comma too much and i think in this version, the for loop is more readable for beginners.
pull/663/head
Hoernchen20 2018-04-07 10:13:25 +02:00 committed by Jerome L
parent a3c1cfe1fd
commit 3bdd2e13f4
1 changed files with 4 additions and 3 deletions

View File

@ -243,13 +243,14 @@ end
Create a refresh script `$OPENHAB_CONF/rules_refresh.sh` and make it executable (`chmod +x rules_refresh.sh`):
```sh
#!/bin/bash
#This script is called by openHAB after the persistence service has started
sleep 5
cd [full_path_to_openhab_config_directory]/rules
RULES=`find *.rules |grep -v refresh.rules
for f in $RULES
FileList="$(find *.rules | grep -v refresh.rules)"
for File in $FileList
do
touch $f
touch $File
done
```