# Неожиданная ошибка сборки с шаблоном sshd

**URL:** <https://meta.discourse.org/t/unexpected-rebuild-error-with-sshd-template/127454>\
**Category:** Self-hosting\
**Created:** [03.Сентябрь.2019 04:54:47 UTC](https://meta.discourse.org/t/unexpected-rebuild-error-with-sshd-template/127454 "2019-09-03T04:54:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [03.Сентябрь.2019 12:01:35 UTC](https://meta.discourse.org/t/unexpected-rebuild-error-with-sshd-template/127454/3 "2019-09-03T12:01:35Z")

</div>

Спасибо. Сертификат истёк на домене.  
Затем (при обновлении сертификата) появилась ошибка:

```plaintext
Pups::ExecError: rm /etc/update-motd.d/00-header failed with return #<Process::Status: pid 181 exit 1>

```

Скрипт по какой-то причине не смог удалить файл `/etc/update-motd.d/00-header` и ещё несколько файлов. Я удалил:

```plaintext
root@toxu:/var/discourse# grep -ril "rm /etc/update-motd.d/00-header" ./
./templates/sshd.template.yml

root@toxu:/var/discourse# diff templates/sshd.template.yml templates/sshd.template.yml.backup
40a41,43
> - rm /etc/update-motd.d/00-header
> - rm /etc/update-motd.d/10-help-text
> - rm /etc/legal

```

И всё заработало. Вопрос можно закрыть.

---

_[View the full topic](https://meta.discourse.org/t/unexpected-rebuild-error-with-sshd-template/127454)._
