]> git.openstreetmap.org Git - chef.git/commitdiff
community: use sudo to install plugins
authorGrant Slater <github@firefishy.com>
Thu, 23 Feb 2023 03:51:32 +0000 (03:51 +0000)
committerGrant Slater <github@firefishy.com>
Thu, 23 Feb 2023 03:51:48 +0000 (03:51 +0000)
Signed-off-by: Grant Slater <github@firefishy.com>
cookbooks/community/templates/default/web_only.yml.erb

index 0f5ddd5775fb02aedac6128979d3d60b307a4f18..2650ef6cdfa081c95de02f89a42bb20cd4583ad8 100644 (file)
@@ -86,12 +86,12 @@ hooks:
     - exec:
         cd: $home/plugins
         cmd:
-          - git clone --depth 1 https://github.com/discourse/discourse-oauth2-basic.git
-          - git clone --depth 1 https://github.com/discourse/discourse-solved.git
-          - git clone --depth 1 https://github.com/discourse/discourse-canned-replies.git
-          - git clone --depth 1 https://github.com/discourse/discourse-reactions.git
-          - git clone https://github.com/discourse/discourse-prometheus.git && cd discourse-prometheus && git checkout 72fff206ba18ad5ca3112fed2f5f0ce6a17ca6f8
-          - git clone --depth 1 https://github.com/discourse/discourse-translator.git
+          - sudo -H -E -u discourse git clone --depth 1 https://github.com/discourse/discourse-oauth2-basic.git
+          - sudo -H -E -u discourse git clone --depth 1 https://github.com/discourse/discourse-solved.git
+          - sudo -H -E -u discourse git clone --depth 1 https://github.com/discourse/discourse-canned-replies.git
+          - sudo -H -E -u discourse git clone --depth 1 https://github.com/discourse/discourse-reactions.git
+          - sudo -H -E -u discourse git clone --depth 1 https://github.com/discourse/discourse-prometheus.git
+          - sudo -H -E -u discourse git clone --depth 1 https://github.com/discourse/discourse-translator.git
   after_ssl:
     - replace:
         filename: "/etc/nginx/conf.d/discourse.conf"