Forked from n1mh/changing_user_transmission-daemon.sh
Created
March 28, 2020 16:35
-
-
Save todesstoss/8d4ce817ebfe4d102f61c7b9d915b81c 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