Last active
July 8, 2020 20:49
-
-
Save n1mh/f8869c93484335f3dbeb6abc4bc6307e to your computer and use it in GitHub Desktop.
Changing user for transmission-daemon in raspberry pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo /etc/init.d/transmission-daemon stop | |
sudo chown -R pi:pi /etc/transmission-daemon | |
sudo rm -rf ~pi/.config/transmission-daemon | |
sudo mv /etc/transmission-daemon ~pi/.config/ | |
sudo ln -s ~pi/.config/transmission-daemon /etc/transmission-daemon | |
sudo chown pi:pi /etc/default/transmission-daemon | |
sudo mv /etc/default/transmission-daemon ~pi/.config/transmission-daemon/transmission-daemon-default | |
sudo ln -s ~pi/.config/transmission-daemon/transmission-daemon-default /etc/default/transmission-daemon | |
sudo chown pi:pi /etc/init.d/transmission-daemon | |
sudo sed -i 's/USER=debian-transmission/USER=pi/g' /etc/init.d/transmission-daemon | |
sudo mv /etc/init.d/transmission-daemon ~pi/.config/transmission-daemon/transmission-daemon-init | |
sudo ln -s ~pi/.config/transmission-daemon/transmission-daemon-init /etc/init.d/transmission-daemon | |
sudo /etc/init.d/transmission-daemon start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OMG, I could kiss you! Thank you :D! I had to combine it with this: https://forum.transmissionbt.com/viewtopic.php?t=14836#p75819