mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
Fix
This commit is contained in:
parent
6fe9de4bba
commit
781ccfb1b4
4 changed files with 9 additions and 6 deletions
|
@ -166,7 +166,7 @@ ynh_replace_string "<div id=\"toolbar-inspector\" title=\"Toggle Inspector\"></d
|
|||
#=================================================
|
||||
# START TRANSMISSION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Starting Transmission..."
|
||||
ynh_script_progression --message="Starting Transmission..." --weight=1
|
||||
|
||||
ynh_systemd_action --service_name=transmission-daemon --action=start
|
||||
|
||||
|
@ -175,6 +175,7 @@ ynh_systemd_action --service_name=transmission-daemon --action=start
|
|||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add transmission-daemon --description="BitTorrent Client" --log="/var/log/syslog" --needs_exposed_ports="$peer_port"
|
||||
|
||||
|
|
|
@ -58,20 +58,20 @@ fi
|
|||
|
||||
if yunohost firewall list | grep -q "\- $port$"
|
||||
then
|
||||
ynh_script_progression --message="Closing port $port..."
|
||||
ynh_script_progression --message="Closing port $port..." --weight=1
|
||||
ynh_exec_warn_less yunohost firewall disallow TCP $port
|
||||
fi
|
||||
|
||||
if yunohost firewall list | grep -q "\- $peer_port$"
|
||||
then
|
||||
ynh_script_progression --message="Closing port $peer_port..."
|
||||
ynh_script_progression --message="Closing port $peer_port..." --weight=1
|
||||
ynh_exec_warn_less yunohost firewall disallow Both $peer_port
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# REMOVE THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing NGINX web server configuration..."
|
||||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=2
|
||||
|
||||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
|
@ -81,7 +81,7 @@ ynh_remove_nginx_config
|
|||
#=================================================
|
||||
# REMOVE DATA
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing transmission data..."
|
||||
ynh_script_progression --message="Removing transmission data..." --weight=2
|
||||
|
||||
# Web interface
|
||||
ynh_secure_remove --file=/usr/share/transmission
|
||||
|
@ -99,7 +99,7 @@ fi
|
|||
#=================================================
|
||||
# REMOVE DEDICATED USER
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing the dedicated system user"
|
||||
ynh_script_progression --message="Removing the dedicated system user" --weight=1
|
||||
|
||||
# Delete a system user
|
||||
ynh_system_user_delete --username=debian-transmission
|
||||
|
|
|
@ -119,6 +119,7 @@ ynh_systemd_action --service_name=transmission-daemon --action=start
|
|||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add transmission-daemon --description="BitTorrent Client" --log="/var/log/syslog" --needs_exposed_ports="$peer_port"
|
||||
|
||||
|
|
|
@ -177,6 +177,7 @@ ynh_replace_string "<div id=\"toolbar-inspector\" title=\"Toggle Inspector\"></d
|
|||
#=================================================
|
||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||
#=================================================
|
||||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
yunohost service add transmission-daemon --description="BitTorrent Client" --log="/var/log/syslog" --needs_exposed_ports="$peer_port"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue