Skip to content

Instantly share code, notes, and snippets.

/pydio.sls Secret

Created July 30, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/36f3e49404004d293bcf to your computer and use it in GitHub Desktop.
Save anonymous/36f3e49404004d293bcf to your computer and use it in GitHub Desktop.
pydio-archive:
archive.extracted:
- name: /var/www/
- source: salt://webapps/pydio.zip
- archive_format: zip
- if_missing: /var/www/pydio/
- require:
- pkg: lighttpd
pydio-rename:
file.rename:
- name: /var/www/pydio/
- source: /var/www/pydio-core-6.0.8/
- require:
- archive: pydio-archive
pydio-directory:
file.directory:
- name: /var/www/pydio
- user: www-data
- group: www-data
- dir_mode: 755
- file_mode: 644
- require:
- file: pydio-rename
pydio-archive:
archive.extracted:
- name: /var/www/
- source: salt://webapps/pydio.zip
- archive_format: zip
- if_missing: /var/www/pydio/
- require:
- pkg: lighttpd
{% if salt['file.rename' ]('/var/www/pydio-core-6.0.8/','/var/www/pydio/') %}
pydio-directory:
file.directory:
- name: /var/www/pydio
- user: www-data
- group: www-data
- dir_mode: 755
- file_mode: 644
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment