╔═══════════════════════════════════════════════════════════════════╗
║ Invidious Update.sh ║
║ Automatic update script for Invidious ║
║ Maintained by @tmiland ║
╚═══════════════════════════════════════════════════════════════════╝
1) Install Invidious 6) Start, Stop or Restart
2) Update Invidious 7) Uninstall Invidious
3) Deploy with Docker 8) Set up PostgreSQL Backup
4) Add Swap Space 9) Install Nginx
5) Run Database Maintenance 10) Exit
Debian | Ubuntu |
---|---|
CentOS | Fedora |
---|---|
Arch | PureOS |
---|---|
It is recommended to use this script on a fresh installation to avoid unwanted complications.
For latest release
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 -
$ chmod +x invidious_update.sh
$ ./invidious_update.sh
Or directly
$ curl -sSL https://github.com/tmiland/Invidious-Updater/releases/latest/download/invidious_update.sh | bash
For master branch
$ wget https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh
$ chmod +x invidious_update.sh
$ ./invidious_update.sh
$ 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 | sudo apt-key add -
$ sudo apt update
$ sudo apt install invidious-updater
Run script with invidious_update
Only for Debian/Ubuntu/LinuxMint/PureOS
$ ./invidious_update.sh -u
Select option 2 once to manually set GitHub Credentials
$ /path/to/script/invidious_update.sh -c
Add job to cron:
$ crontab -e
@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:
sudo passwd root
Note: GitHub Credentials needs to be provided to keep the update from failing(Credentials are stored in /root/.gitconfig)This is required to stash & checkout a new branch which was implemented to prevent "Detached HEAD state".
Deploy Invidious with Docker
Add Swap Space
Run database maintenance
Also works with argument -m
$ /path/to/script/invidious_update.sh -m
Start, Stop or Restart Invidious
Uninstall Invidious
Set up PostgreSQL Backup
Install Nginx
Exit
Tested and working on:
Debian | Ubuntu | CentOS | Fedora | Arch | PureOS |
---|---|---|---|---|---|
Tested extensively on Debian 9/10
Tested on Ubuntu 16.04
Tested on Ubuntu 18.10
Tested on CentOS 8
Tested on Fedora 33
On Bash on Debian on Windows (in Gnome-Boxes)
Tested on Linux Mint.
Tested on Arch Linux
If you get permission issues, set selinux to permissive.See how to here:
How do I enable or disable SELinux ?
Postgresql 11 will be installed by default in both Fedora and CentOS. (If not already installed)
Postgresql will be default from repo on Fedora 33 and CentOS 8
See Changelog
Sign up for web hosting using this link, and receive $100 in credit over 60 days.
*** Use at own risk ***