tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

install-youtube-upload.sh (395B)


      1 #!/bin/bash
      2 
      3 # Install script for youtube upload mod
      4 # https://github.com/tokland/youtube-upload
      5 
      6 ROOT_UID=0   # Root has $UID 0.
      7 
      8 if [ "$UID" -eq "$ROOT_UID" ]
      9 then
     10    echo "OK"
     11 else
     12     echo "Run with sudo!"
     13     exit 0
     14 fi
     15 
     16 echo "INSTALLING AND ENABLING MOD: youtube-upload"
     17 
     18 sudo pip3 install --upgrade google-api-python-client oauth2client progressbar2
     19 
     20 echo "youtube-upload" >> mods-enabled