Hi all, I trying to install the discourse-alt-logo plugin (https://meta.discourse.org/t/alternative-logos-for-dark-light-themes/88502), but I’m failing miserably.
I have already successfully installed several other plugins in my system, this is how my app.yml looks like:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- sudo -E -u discourse git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-voting.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-canned-replies.git
- git clone https://github.com/discourse/discourse-alt-logo.git
(Note that the topic about installing plugins Install plugins on a self-hosted site has been recently updated with a "sudo -E -u discourse"
prefix before the git clone command. It’s not clear though if the remaining lines should have sudo as well. But I have tried all combinations: everything wit sudo, everything without sudo, just the first with sudo, etc. What is the correct one?).
Here is part of the rebuild log:
I, [2020-06-23T14:26:42.313875 #1] INFO -- : > cd /var/www/discourse/plugins && sudo -E -u discourse git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
warning: unable to access '/root/.config/git/attributes': Permission denied
I, [2020-06-23T14:26:43.128902 #1] INFO -- :
I, [2020-06-23T14:26:43.129404 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-voting.git
Cloning into 'discourse-voting'...
I, [2020-06-23T14:26:43.499586 #1] INFO -- :
I, [2020-06-23T14:26:43.500165 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2020-06-23T14:26:43.860313 #1] INFO -- :
I, [2020-06-23T14:26:43.860856 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-canned-replies.git
Cloning into 'discourse-canned-replies'...
I, [2020-06-23T14:26:44.243782 #1] INFO -- :
I, [2020-06-23T14:26:44.244411 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-alt-logo.git
Cloning into 'discourse-alt-logo'...
I, [2020-06-23T14:26:44.531174 #1] INFO -- :
However, whatever I do, the plugin doesn’t get installed, no options are displayed, and when I go to the Plugins section in the Admin area, only the previous plugins are listed as installed:
Any ideas?