mirror of
https://github.com/YunoHost-Apps/transmission_ynh.git
synced 2024-09-04 01:46:12 +02:00
cleaning
This commit is contained in:
parent
96e43729d6
commit
d3a5a85217
2 changed files with 2 additions and 13 deletions
|
@ -14,6 +14,7 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||
|
||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
|
||||
if yunohost service status transmission-daemon >/dev/null 2>&1
|
||||
|
@ -22,21 +23,9 @@ then
|
|||
yunohost service remove transmission-daemon
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# REMOVE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing NGINX web server configuration..."
|
||||
|
||||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC REMOVE
|
||||
#=================================================
|
||||
# REMOVE VARIOUS FILES
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing various files..."
|
||||
|
||||
# Web interface
|
||||
ynh_secure_remove --file=/usr/share/transmission
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ else
|
|||
path_less="$path"
|
||||
fi
|
||||
|
||||
#ynh_add_config --template="../conf/settings.json" --destination="/etc/transmission-daemon/settings.json"
|
||||
ynh_add_config --template="../conf/settings.json" --destination="/etc/transmission-daemon/settings.json"
|
||||
|
||||
chmod 400 "/etc/transmission-daemon/settings.json"
|
||||
chown debian-transmission:debian-transmission "/etc/transmission-daemon/settings.json"
|
||||
|
|
Loading…
Add table
Reference in a new issue