[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
parent
a3c1cfe1fd
commit
3bdd2e13f4
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue