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

Fixed change_url script

This commit is contained in:
Côme Chilliet 2018-06-17 22:05:07 +02:00
parent 3c938f69f7
commit 3f47a8dcf0

View file

@ -122,7 +122,7 @@ systemctl stop transmission-daemon
if [ $change_path -eq 1 ]
then
[ "$new_path" = "/" ] || new_path=${new_path}/
sed -i -e s@\"rpc-url\": \"${old_path}transmission@\"rcp-url\": \"${newpath}\"transmission@ /etc/transmission-daemon/settings.json
ynh_replace_string "\"rpc-url\": \"${old_path}transmission/\"" "\"rpc-url\": \"${new_path}transmission/\"" /etc/transmission-daemon/settings.json
fi
#=================================================