diff --git a/scripts/install b/scripts/install index d807a74..cdd0548 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #=================================================