Skip to content

Automatic install and update script for Invidious

License

Notifications You must be signed in to change notification settings

tmiland/invidious-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d5e4216 · Feb 20, 2019
Feb 18, 2019
Feb 20, 2019
Feb 15, 2019
Feb 9, 2019
Feb 15, 2019
Feb 18, 2019
Feb 19, 2019
Feb 18, 2019
Feb 16, 2019
Feb 16, 2019
Feb 20, 2019

Repository files navigation

Invidious-Updater (And Installer)

                  ######################################################################
                  ####                    Invidious Update.sh                       ####
                  ####            Automatic update script for Invidio.us            ####
                  ####                   Maintained by @tmiland                     ####
                  ####                       version: 1.2.3                         ####
                  ######################################################################

Script to install and update Invidious

  • Install Invidious
  • Update Invidious
  • Deploy Invidious with Docker
  • Install Invidious service
  • Run database maintenance
  • Run database migration
  • Uninstall Invidious

Screenshot

screenshot

Installation

download and execute the script :

$ wget https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh
$ chmod +x invidious_update.sh
$ su
$ ./invidious_update.sh

Or :

$ cd /home/invidious
$ git clone https://github.com/tmiland/Invidious-Updater.git
$ cd Invidious-Updater
$ chmod +x invidious_update.sh
$ su
$ ./invidious_update.sh

Optionally

$ ln -s /home/invidious/Invidious-Updater/invidious_update.sh /usr/bin/invidious-updater
$ invidious-updater

Usage

  1. Install invidious

    • Select an option [1-8]: 1

    • Let's go through some configuration options.

    • "Do you want to install Invidious release or master?"

        1. release
        1. master
    • Select database name: invidious

    • Select database password: invidious

    • Enter the desired domain name: localhost

    • Are you going to use https only? [y/n]: n

      • You entered:
      • branch: release/master
      • domain: localhost
      • https only: false
      • dbname: invidious
      • password: invidious
    • Choose your Imagemagick version :

        1. System's Imagemagick
        • (Currently installed version)
        1. Imagemagick 6 from source
        1. Imagemagick 7 from source
    • Invidious is ready to be installed, press any key to continue...

  2. Update Invidious

    • Let's go through some configuration options.

    • Do you want to checkout Invidious release or master?

        1. release
        1. master
    • Select an option [1-2]: 1

    • You entered:

      • branch: release
    • Invidious is ready to be updated, press any key to continue...

  3. Deploy Invidious with Docker

      1. Build and start cluster
      1. Start, Stop or Restart cluster
      1. Rebuild cluster
      1. Delete data and rebuild
      1. Install Docker CE
  4. Install Invidious service

    • Setup Systemd Service
  5. Run database maintenance

  6. Run database migration

  7. Uninstall Invidious

    • Uninstallation of Invidious, and everything installed during setup.
      • Remove PostgreSQL database for Invidious ? [y/n]
        • Enter Invidious PostgreSQL database name: invidious
        • Backup will be placed in /home/backup
      • Remove Packages ? [y/n]
      • Purge Package configuration files ? [y/n]
      • Remove files ? [y/n]: <-- This is required for reinstalling.
      • Remove user ? [y/n]: <-- This is not required for reinstalling.
      • Is that correct? [y/n]:
    • Invidious is ready to be uninstalled, press any key to continue...
  8. Exit

    • Exits the script

Testing

  • Tested extensively on Debian 9

    • Docker option tested and working
  • Tested on Ubuntu 16.04

    • Docker option tested, not working
  • Tested on Ubuntu 18.04

Latest install log - version: 1.1.6

install log Debian 9

Todo

  • Add Imagemagick (source) to Uninstall options

Done

  • Add Uninstallation option
    • Added in version 1.1.4
  • Rework the install prompts
    • Done in version 1.1.5
  • Add database migration option migrate-scripts
  • Add database maintenance option Database Information and Maintenance
  • Add option to compile imagemagick from source Issues with Captcha on Debian and Ubuntu
    • Added in version 1.1.6
    • Added support for Imagemagick 6 and 7, or keep current version.
    • The captcha clock is working with 6 and 7, not with default pkg.
  • Add Deb Packages
  • Support for auto-update check
    • For Script - Added in 1.1.7
  • Rewrite the update procedure - Done in 1.2.2
  • Add support to deploy in Docker - Added in 1.2.3

Possible options

  • Support for auto-update check

    • For Invidious
  • Support for running own forks

  • Support for database backup

Compatibility and Requirements

  • Debian 8 and later
  • Ubuntu 16.04 and later

Credits

Feature request and bug reports

Donations

  • PayPal me
  • [BTC] : 3MV69DmhzCqwUnbryeHrKDQxBaM724iJC2
  • [BCH] : qznnyvpxym7a8he2ps9m6l44s373fecfnv86h2vwq2