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

Detect issue related to transmission-common and reinstall it if needed

This commit is contained in:
Alexandre Aubin 2019-03-27 20:09:47 +01:00 committed by GitHub
parent b3a3b19faf
commit 6491e23d3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,17 @@ ynh_app_setting_set $app peer_port $peer_port
ynh_install_app_dependencies transmission-daemon 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
#=================================================