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:
commit
27fd169519
3 changed files with 14 additions and 3 deletions
|
@ -66,7 +66,18 @@ ynh_app_setting_set $app peer_port $peer_port
|
||||||
# INSTALL TRANSMISSION
|
# 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
|
# NGINX CONFIGURATION
|
||||||
|
|
|
@ -60,7 +60,7 @@ yunohost firewall allow Both $peer_port >/dev/null 2>&1
|
||||||
# REINSTALL TRANSMISSION
|
# REINSTALL TRANSMISSION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_install_app_dependencies transmission-daemon acl
|
ynh_install_app_dependencies transmission-daemon transmission-cli transmission-common acl
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE TRANSMISSION CONFIGURATION
|
# RESTORE TRANSMISSION CONFIGURATION
|
||||||
|
|
|
@ -70,7 +70,7 @@ ynh_add_nginx_config
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_install_app_dependencies transmission-daemon acl
|
ynh_install_app_dependencies transmission-daemon transmission-cli transmission-common acl
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
|
|
Loading…
Reference in a new issue