examples: lang: Improve reverse example
It's cool to show just the mode changes.
This commit is contained in:
@@ -16,9 +16,10 @@ file "/tmp/mgmt/" {
|
|||||||
|
|
||||||
# file should change the mode every four seconds
|
# file should change the mode every four seconds
|
||||||
# editing the file contents at anytime is allowed
|
# editing the file contents at anytime is allowed
|
||||||
|
# you should create the file before you run this
|
||||||
if $mod {
|
if $mod {
|
||||||
file "/tmp/mgmt/hello" {
|
file "/tmp/mgmt/hello" {
|
||||||
state => "exists",
|
#state => "exists", # omit to see it change the mode only!
|
||||||
mode => "0777",
|
mode => "0777",
|
||||||
|
|
||||||
Meta:reverse => true,
|
Meta:reverse => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user