Изменение Readme, правки файла конфига

This commit is contained in:
XeRo 2026-02-06 14:54:01 +05:00
parent 7523323239
commit 90282447eb
2 changed files with 22 additions and 9 deletions

View file

@ -409,16 +409,16 @@ sections:
error: "Не удалось создать ключ"
- name: "get gpg key id"
type: "command"
command: "sudo -u {{.repko_user}} gpg --homedir /var/lib/repko/gnupg --list-keys --with-colons | grep pub | cut -d: -f5"
command: "sudo -u {{.repko_user}} gpg --homedir /var/lib/repko/gnupg --list-keys --with-colons 2>/dev/null | grep '^pub' | cut -d: -f5"
error: "Не удалось получить и сохранить id gpg ключа"
assign-to: "gpg_key_id"
- name: "export gpg key"
type: "command"
command: "sudo -u {{.repko_user}} gpg --homedir /var/lib/repko/gnupg --armor --export '{{.gpg_key_id}}!' 2>/dev/null > /usr/share/keyrings/repko.asc"
command: "sudo -u {{.repko_user}} gpg --homedir /var/lib/repko/gnupg --armor --export '{{.gpg_key_id}}' 2>/dev/null > /usr/share/keyrings/repko.asc"
error: "Не удалось экспортировать gpg ключ"
- name: "write gpg key id"
type: "command"
command: "echo {{.gpg_key_id}} > /etc/repko/keyid"
command: "echo '{{.gpg_key_id}}' > /etc/repko/keyid"
error: "не удалось записать gpg key id в файл keyid"
- name: "set owner for exported key"
type: "command"
@ -493,28 +493,28 @@ sections:
- name: "update_united_nginx_conf"
type: "file_template"
condition: "api_domain==panel_domain"
file-source: "/opt/repko/donors/united.repko.conf"
file-source: "/opt/repko/templates/united.repko.template.conf"
file-target: "/etc/nginx/sites-available/repko.conf"
error: "Ошибка при создании файла united nginx conf"
- name: "update_separated_nginx_conf"
type: "file_template"
condition: "api_domain !=panel_domain"
file-source: "/opt/repko/donors/separated.repko.conf"
file-source: "/opt/repko/templates/separated.repko.template.conf"
file-target: "/etc/nginx/sites-available/repko.conf"
error: "Ошибка при создании файла separated nginx conf"
- name: "update_repko_service"
type: "file_template"
file-source: "/opt/repko/donors/repko.service"
file-source: "/opt/repko/templates/repko.template.service"
file-target: "/etc/systemd/system/repko.service"
error: "Ошибка при создании файла repko service"
- name: "update_repko_ini"
type: "file_template"
file-source: "/opt/repko/donors/config.ini"
file-source: "/opt/repko/templates/config.template.ini"
file-target: "/etc/repko/config.ini"
error: "Ошибка при создании файла repko config"
- name: "update_web_config"
type: "file_template"
file-source: "/opt/repko/donors/config.json"
file-source: "/opt/repko/templates/config.template.json"
file-target: "/var/www/repko/web/config.json"
error: "Ошибка при создании файла repko web config"
- name: "Set files ownership"