diff --git a/pull_request_template.md b/pull_request_template.md index 033f08c..4e9742c 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -19,7 +19,6 @@ - [ ] **Approval (LGTM)** : - [ ] **Approval (LGTM)** : - **CI succeeded** : -[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/transmission_ynh%20-BRANCH-%20(Official)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/transmission_ynh%20-BRANCH-%20(Official)/) *Please replace '-BRANCH-' in this link for a PR from a local branch.* -or -[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/transmission_ynh%20PR-NUM-%20(Official_fork)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/transmission_ynh%20PR-NUM-%20(Official_fork)/) *Replace '-NUM-' by the PR number in this link for a PR from a forked repository.* +[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/transmission_ynh%20PR-NUM-/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/transmission_ynh%20PR-NUM-/) +*Please replace '-NUM-' in this link by the PR number.* When the PR is marked as ready to merge, you have to wait for 3 days before really merging it. diff --git a/scripts/install b/scripts/install index d807a74..f5d7e6a 100644 --- a/scripts/install +++ b/scripts/install @@ -66,7 +66,18 @@ ynh_app_setting_set $app peer_port $peer_port # INSTALL TRANSMISSION #================================================= -ynh_install_app_dependencies transmission-daemon acl +ynh_install_app_dependencies transmission-daemon transmission-cli transmission-common acl + +# Fix a stupid issue which happens sometimes ... +# transmission-common is installed (it's a dependency of +# transmission-daemon) but somehow the files it's supposed +# to add ain't there ... and possibly also the transmission user +# is missing. +# Explicitly reinstalling the package fixes the issue :| +if [ ! -d /usr/share/transmission/ ] +then + ynh_package_install transmission-common --reinstall +fi #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index f10f782..6139280 100644 --- a/scripts/restore +++ b/scripts/restore @@ -60,7 +60,7 @@ yunohost firewall allow Both $peer_port >/dev/null 2>&1 # REINSTALL TRANSMISSION #================================================= -ynh_install_app_dependencies transmission-daemon acl +ynh_install_app_dependencies transmission-daemon transmission-cli transmission-common acl #================================================= # RESTORE TRANSMISSION CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 43eb9f2..4c07458 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,7 +70,7 @@ ynh_add_nginx_config # INSTALL DEPENDENCIES #================================================= -ynh_install_app_dependencies transmission-daemon acl +ynh_install_app_dependencies transmission-daemon transmission-cli transmission-common acl #================================================= # SPECIFIC UPGRADE