aboutsummaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2016-02-12 00:53:59 +0100
committertoni <matzeton@googlemail.com>2016-02-12 00:53:59 +0100
commite833f64fa6b97c762e38a969d0e6d6091a8cbe19 (patch)
tree4a1a766c37d062ca58e7b11e8d22c2149e4f5db1 /configs
parent55fb85a3ea38f898e050c44b71af9765901f9918 (diff)
mps-youtube nonroot install
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/party-mode/install_mpsyt.sh9
-rwxr-xr-xconfigs/party-mode/spawn_mpsyt2
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