diff --git a/states/rainloop/defaults.yaml b/states/rainloop/defaults.yaml index 5dc3fad..214f353 100644 --- a/states/rainloop/defaults.yaml +++ b/states/rainloop/defaults.yaml @@ -3,6 +3,7 @@ rainloop: enabled: true install_dir: /usr/local/apps release_dir: /usr/local/apps/releases + release_filename: rainloop-legacy mirror: https://github.com/RainLoop/rainloop-webmail/releases/download version: 1.14.0 data_dir: /var/lib/rainloop diff --git a/states/rainloop/install.sls b/states/rainloop/install.sls index 0cb208b..be950e3 100644 --- a/states/rainloop/install.sls +++ b/states/rainloop/install.sls @@ -2,17 +2,17 @@ {%- from "rainloop/map.jinja" import rainloop with context %} rainloop-archive-extract: archive.extracted: - - name: {{ rainloop.release_dir }}/rainloop-community-{{ rainloop.version }} - - source: {{ rainloop.mirror }}/v{{ rainloop.version }}/rainloop-community-{{ rainloop.version }}.zip + - name: {{ rainloop.release_dir }}/{{ rainloop.release_filename }}-{{ rainloop.version }} + - source: {{ rainloop.mirror }}/v{{ rainloop.version }}/{{ rainloop.release_filename }}-{{ rainloop.version }}.zip - skip_verify: true - enforce_toplevel: false - user: {{ rainloop.user }} - group: {{ rainloop.group }} - - if_missing: {{ rainloop.release_dir }}/rainloop-community-{{ rainloop.version }} + - if_missing: {{ rainloop.release_dir }}/{{ rainloop.release_filename }}-{{ rainloop.version }} rainloop-archive-symlink: file.symlink: - name: {{ rainloop.install_dir }}/rainloop - - target: {{ rainloop.release_dir }}/rainloop-community-{{ rainloop.version }} + - target: {{ rainloop.release_dir }}/{{ rainloop.release_filename }}-{{ rainloop.version }} - require: - archive: rainloop-archive-extract