diff --git a/states/nextcloud_desktop/init.sls b/states/nextcloud_desktop/init.sls index e3429a4..76d5a8c 100644 --- a/states/nextcloud_desktop/init.sls +++ b/states/nextcloud_desktop/init.sls @@ -1,7 +1,7 @@ --- {%- from "nextcloud_desktop/map.jinja" import nextcloud_desktop with context %} -nextcloud-appimage: +nextcloud-desktop-appimage: file.managed: - name: {{ nextcloud_desktop.dest_path }} - source: {{ nextcloud_desktop.url }}/Nextcloud-{{ nextcloud_desktop.version }}-x86_64.AppImage @@ -9,13 +9,15 @@ nextcloud-appimage: - user: root - group: root - mode: 755 - - if_missing: {{ nextcloud_desktop.dest_path }}-{{ netxcloud.version }} + - if_missing: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }} -nextcloud-install-link: +nextcloud-desktop-install-link: file.symlink: - name: {{ nextcloud_desktop.dest_path }} - - target: {{ nextcloud_desktop.dest_path }}/{{ nextcloud.version }} + - target: {{ nextcloud_desktop.dest_path }}/{{ nextcloud_desktop.version }} - force: True + - watch: + - file: nextcloud-desktop-appimage nextcloud-desktop-icon: file.managed: