Hi
I would like to test for the existence of a file which is independently installed by another package. If I uncomment the line in example below, i get a " The following requisites were not found:" error. I have also tried to move the logic into the unless statement, but didn't have luck. Please could you advise.
/root/.bashrc:
file:
- append
- text:
- export WORKON_HOME=/usr/local/virtualenv
- source /usr/local/bin/virtualenvwrapper.sh
- unless:
- "sudo grep '^export WORKON_HOME' /root/.bashrc"
- require:
- pip.installed: virtualenvwrapper
- file.directory: /usr/local/virtualenv
# - file.exists: /usr/local/bin/virtualenvwrapper.sh ## this line doesn't work
Many thanks, again:)
Donovan