add variable for compose binary
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-11-24 23:25:10 +01:00
parent 607a35f7cd
commit 630eb39f81
3 changed files with 7 additions and 5 deletions

View File

@ -85,3 +85,5 @@ freshrss_db_password: secure
freshrss_db_ssl_mode: disable freshrss_db_ssl_mode: disable
# @var freshrss_db_ssl_mode:description: This variable is only supported for `pgsql` DB type. # @var freshrss_db_ssl_mode:description: This variable is only supported for `pgsql` DB type.
freshrss_db_ssl_rootcert: /etc/ssl/certs/ca-certificates.crt freshrss_db_ssl_rootcert: /etc/ssl/certs/ca-certificates.crt
freshrss_docker_compose_bin: /usr/local/bin/docker-compose

View File

@ -7,7 +7,7 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
validate: /bin/docker-compose -f %s config -q validate: "{{ freshrss_docker_compose_bin }} -f %s config -q"
notify: __freshrss_restart notify: __freshrss_restart
- name: Create systemd unit files - name: Create systemd unit files

View File

@ -11,12 +11,12 @@ Type=simple
TimeoutStartSec=15min TimeoutStartSec=15min
Restart={{ freshrss_restart_policy }} Restart={{ freshrss_restart_policy }}
ExecStartPre=/bin/docker-compose pull --quiet --ignore-pull-failures ExecStartPre={{ ttrss_docker_compose_bin }} pull --quiet --ignore-pull-failures
ExecStart=/usr/bin/docker-compose up --remove-orphans ExecStart={{ ttrss_docker_compose_bin }} up --remove-orphans
ExecStop=/usr/bin/docker-compose down --remove-orphans ExecStop={{ ttrss_docker_compose_bin }} down --remove-orphans
ExecReload=/usr/bin/docker-compose pull --quiet --ignore-pull-failures ExecReload={{ ttrss_docker_compose_bin }} pull --quiet --ignore-pull-failures
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target