diff --git a/INSTALL.md b/INSTALL.md index b787f8e..985e274 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -1,46 +1,33 @@ #### Download and execute the script -For latest release - -```bash -curl -s https://api.github.com/repos/tmiland/Invidious-Updater/releases/latest \ -| grep "browser_download_url.*sh" \ -| cut -d : -f 2,3 \ -| tr -d \" \ -| wget -qi - -``` +***Note: you will be prompted to enter root password*** -```bash -chmod +x invidious_update.sh -./invidious_update.sh -``` -Or directly +If root password is not set, type: ```bash -curl -sSL https://github.com/tmiland/Invidious-Updater/releases/latest/download/invidious_update.sh | bash +sudo passwd root ``` - -For master branch +Log in as root ```bash -wget https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh -chmod +x invidious_update.sh -./invidious_update.sh +su root ``` -### Repository - ```shell - sudo curl -SsL -o /etc/apt/sources.list.d/tmiland.list https://deb.tmiland.com/debian/tmiland.list - ``` +To install this script: +- Latest release + ```bash + curl -sSL https://github.com/tmiland/Invidious-Updater/raw/master/install.sh | bash release + ``` +- Master + ```bash + curl -sSL https://github.com/tmiland/Invidious-Updater/raw/master/install.sh + ``` - ```shell - curl -SsL https://deb.tmiland.com/debian/KEY.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/tmiland-archive-keyring.gpg >/dev/null - ``` +### Repository ```shell - sudo apt update - ``` - - ```shell + sudo curl -SsL -o /etc/apt/sources.list.d/tmiland.list https://deb.tmiland.com/debian/tmiland.list && \ + curl -SsL https://deb.tmiland.com/debian/KEY.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/tmiland-archive-keyring.gpg >/dev/null && \ + sudo apt update && \ sudo apt install invidious-updater ``` @@ -48,14 +35,7 @@ chmod +x invidious_update.sh - ***Only for Debian/Ubuntu/LinuxMint/PureOS*** -#### Check for script update (Default "no") - ```bash - - ./invidious_update.sh -u - - ``` - #### Update Invidious via Cron **Select option 2 once to manually set GitHub Credentials** @@ -72,34 +52,3 @@ crontab -e ```bash @daily bash /path/to/script/invidious_update.sh -c > /dev/null 2>&1 # Automated Invidious Update ``` - -***Note: you will be prompted to enter root password*** - -If root password is not set, type: - -```bash -sudo passwd root -``` - -#### Install inv sig helper -This option will install [inv_sig_helper](https://github.com/iv-org/inv_sig_helper) -```bash - -/path/to/script/invidious_update.sh -i - -``` - -#### Update YouTube trusted session generator -This option will install [YouTube trusted session generator](https://github.com/iv-org/youtube-trusted-session-generator) -```bash - -/path/to/script/invidious_update.sh -y - -``` -Add job to cron to periodically update po_token and visitor_data: -```bash -crontab -e -``` -```bash -@daily bash /path/to/script/invidious_update.sh -y > /dev/null 2>&1 # Automated YouTube trusted session generator update -``` \ No newline at end of file