diff options
author | toni <matzeton@googlemail.com> | 2016-02-12 00:53:59 +0100 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2016-02-12 00:53:59 +0100 |
commit | e833f64fa6b97c762e38a969d0e6d6091a8cbe19 (patch) | |
tree | 4a1a766c37d062ca58e7b11e8d22c2149e4f5db1 /configs | |
parent | 55fb85a3ea38f898e050c44b71af9765901f9918 (diff) |
mps-youtube nonroot install
Diffstat (limited to 'configs')
-rwxr-xr-x | configs/party-mode/install_mpsyt.sh | 9 | ||||
-rwxr-xr-x | configs/party-mode/spawn_mpsyt | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/configs/party-mode/install_mpsyt.sh b/configs/party-mode/install_mpsyt.sh new file mode 100755 index 0000000..01a19d4 --- /dev/null +++ b/configs/party-mode/install_mpsyt.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ $(id -u) -eq 0 ]; then + echo "* Dont run this script as root!" + exit 1 +fi +virtualenv --python=/usr/bin/python3 ~/mps-youtube --no-site-packages +source ~/mps-youtube/bin/activate +pip install mps-youtube diff --git a/configs/party-mode/spawn_mpsyt b/configs/party-mode/spawn_mpsyt index 9e0f25e..2174f5f 100755 --- a/configs/party-mode/spawn_mpsyt +++ b/configs/party-mode/spawn_mpsyt @@ -10,4 +10,4 @@ if [ "x${SD_USER}" = "x" ]; then exit 2 fi export SD_USER -openvt -l -s -- su -l ${SD_USER} -s /usr/local/bin/mpsyt +openvt -l -s -- su -l ${SD_USER} -s /home/${SD_USER}/mps-youtube/bin/mpsyt |