مرحباً بالجميع، أحاول تثبيت إضافة discourse-alt-logo (https://meta.discourse.org/t/alternative-logos-for-dark-light-themes/88502)، لكنني أفشل فشلاً ذريعاً.
لقد قمت بنجاح بتثبيت عدة إضافات أخرى في نظامي، وهذا شكل ملف app.yml الخاص بي:
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
(لاحظ أن موضوع تثبيت الإضافات Install plugins on a self-hosted site تم تحديثه مؤخراً بإضافة بادئة sudo -E -u discourse قبل أمر git clone. غير أن الأمر غير واضح فيما إذا كان يجب إضافة sudo للسطور المتبقية أيضاً. لكنني جربت جميع التوليفات: كل شيء مع sudo، كل شيء بدون sudo، السطر الأول فقط مع sudo، إلخ. ما هو التكوين الصحيح؟).
إليك جزء من سجل إعادة البناء:
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 -- :
ومع ذلك، مهما فعلت، لا يتم تثبيت الإضافة، ولا تظهر أي خيارات، وعندما أذهب إلى قسم الإضافات في منطقة الإدارة، تظهر فقط الإضافات السابقة كمثبتة:
هل لديكم أي أفكار؟
