From 9af36237e9365c22e7e368c736c8998e44840110 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Sun, 11 Jul 2021 17:39:41 +0200 Subject: [PATCH] updated telegram state --- states/telegram/install.sls | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/states/telegram/install.sls b/states/telegram/install.sls index 394e1e4..6f00ba5 100644 --- a/states/telegram/install.sls +++ b/states/telegram/install.sls @@ -16,12 +16,16 @@ telegram-symlink: - name: {{ telegram.install_dir }}/telegram - target: {{ telegram.release_dir }}/telegram-{{ telegram.version }} - force: true + - require: + - archive: telegram-archive-extract telegram-bin-symlink: file.symlink: - name: /usr/bin/telegram - target: {{ telegram.install_dir }}/telegram/telegram - force: true + - require: + - archive: telegram-archive-extract telegram-icon: file.managed: @@ -30,6 +34,8 @@ telegram-icon: - user: root - group: root - mode: 644 + - require: + - archive: telegram-archive-extract telegram-shortcut: file.managed: @@ -38,4 +44,6 @@ telegram-shortcut: - user: root - group: root - mode: 644 - - template: jinja \ No newline at end of file + - template: jinja + - require: + - archive: telegram-archive-extract \ No newline at end of file