1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/transmission_ynh.git synced 2024-09-04 01:46:12 +02:00

Merge pull request #52 from YunoHost-Apps/check-for-tranmission-common-files

Detect issue related to transmission-common and reinstall it if needed
This commit is contained in:
Maniack Crudelis 2019-03-30 17:28:26 +01:00 committed by GitHub
commit 27fd169519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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