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:
parent
b3a3b19faf
commit
6491e23d3a
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue