search for: one_install_script

Displaying 1 result from an estimated 1 matches for "one_install_script".

2012 Apr 25
5
exec's onlyif parameter fails for a bash one-liner
I would like to ''exec'' 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...