From ba6547999b7291dc45b701e0b37ecb9607e6904c Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sat, 12 Sep 2020 17:14:57 +0200 Subject: [PATCH] updated nextcloud_desktop state --- states/nextcloud_desktop/init.sls | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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: