From e833f64fa6b97c762e38a969d0e6d6091a8cbe19 Mon Sep 17 00:00:00 2001 From: toni Date: Fri, 12 Feb 2016 00:53:59 +0100 Subject: mps-youtube nonroot install --- configs/party-mode/install_mpsyt.sh | 9 +++++++++ configs/party-mode/spawn_mpsyt | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 configs/party-mode/install_mpsyt.sh (limited to 'configs') 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 -- cgit v1.2.3