From: Grant Slater Date: Thu, 23 Feb 2023 03:51:32 +0000 (+0000) Subject: community: use sudo to install plugins X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/8de79fff35e78cefb199797eadaa48af89124cec?ds=inline community: use sudo to install plugins Signed-off-by: Grant Slater --- diff --git a/cookbooks/community/templates/default/web_only.yml.erb b/cookbooks/community/templates/default/web_only.yml.erb index 0f5ddd577..2650ef6cd 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -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"