Fixed curl to follow redirections.
diff --git a/linux/system/repo.sls b/linux/system/repo.sls
index 36f0d14..b734498 100644
--- a/linux/system/repo.sls
+++ b/linux/system/repo.sls
@@ -93,7 +93,7 @@
linux_repo_{{ name }}_key:
cmd.wait:
- - name: "curl -s {{ repo.key_url }} | apt-key add -"
+ - name: "curl -sL {{ repo.key_url }} | apt-key add -"
- watch:
- file: default_repo_list
@@ -150,8 +150,8 @@
linux_repo_{{ name }}_key:
cmd.run:
- - name: "curl -s {{ repo.key_url }} | apt-key add -"
- - unless: "apt-key finger --with-colons | grep -qF $(curl -s {{ repo.key_url }} | gpg --with-fingerprint --with-colons | grep -E '^fpr')"
+ - name: "curl -sL {{ repo.key_url }} | apt-key add -"
+ - unless: "apt-key finger --with-colons | grep -qF $(curl -sL {{ repo.key_url }} | gpg --with-fingerprint --with-colons | grep -E '^fpr')"
- require_in:
- pkgrepo: linux_repo_{{ name }}