Displaying 1 result from an estimated 1 matches for "one_location".
Did you mean:
home_location
2012 Apr 25
5
exec's onlyif parameter fails for a bash one-liner
...39;' an installation script ''onlyif'' an installation
directory is empty. I tried using following bash one-liner however it
didn''t work:
<code>
exec{$one_install_script:
require => File[$one_install_script],
onlyif => "[ \"$(/bin/ls -A $one_location)\" ] && exit 1 || exit
0"
}
</code>
It failed with following error:
<error>
err: Failed to apply catalog: Parameter onlyif failed: ''[ "$(/bin/ls -
A /srv/cloud/one)" ] && exit 1 || exit 0'' is not qualified and no
path was speci...