10 KiB
Invidious-Updater (And Installer)
╔═══════════════════════════════════════════════════════════════════╗
║ Invidious Update.sh ║
║ Automatic update script for Invidious ║
║ Maintained by @tmiland ║
╚═══════════════════════════════════════════════════════════════════╝
Script to install and update Invidious
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
Screenshots
Debian | Ubuntu |
---|---|
![]() |
![]() |
CentOS | Fedora |
---|---|
![]() |
![]() |
Arch | PureOS |
---|---|
![]() |
![]() |
Recommendation
It is recommended to use this script on a fresh installation to avoid unwanted complications.
- I recommend a Debian 10 Droplet on DigitalOcean
Installation
Download and execute the script:
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
For master branch
$ wget https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh
$ chmod +x invidious_update.sh
$ ./invidious_update.sh
Check for script update (Default "no")
$ ./invidious_update.sh -u
Update Invidious via Cron
$ /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
Usage
- Install invidious
-
Update Invidious
-
Let's go through some configuration options.
-
Do you want to checkout Invidious release or master?
-
- release
-
- master
-
-
Select an option [1-2]: 1
-
You entered:
- branch: release
-
Invidious is ready to be updated, press any key to continue...
-
-
Deploy Invidious with Docker
-
- Build and start cluster
-
- Start, Stop or Restart cluster
-
- Rebuild cluster
-
- Delete data and rebuild
-
- Install Docker CE
-
-
Add Swap Space
- Easy option to add Swap Space from external script Credit: swap-add
-
Run database maintenance
- Database maintenance option Database Information and Maintenance
-
Start, Stop or Restart Invidious
-
Uninstall Invidious
-
Set up PostgreSQL Backup
-
Exit
- Exits the script
Testing
Tested and working on:
Debian | Ubuntu | CentOS | Fedora | Arch | PureOS |
---|---|---|---|---|---|
-
Tested extensively on Debian 9/10
- Docker option tested and working
-
Tested on Ubuntu 16.04
- Docker option tested, not working
-
Tested on Ubuntu 18.10
- Docker option tested and working
-
Tested on CentOS 7
- Docker option tested and working
-
Tested on Fedora 29
- Docker option tested and working
-
On Bash on Debian on Windows (in Gnome-Boxes)
- Systemd not working
- Docker option not working
-
Tested on Linux Mint.
- See #15
-
Tested on Arch Linux
- Docker option tested and working
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)
Latest install log - version: 1.4.4
Changelog
See Changelog
Compatibility and Requirements
- Debian 8 and later
- Ubuntu 16.04 and later
- PureOS (Not tested)
- CentOS 7
- Fedora 29
- Docker support
- Arch Linux
Credits
- Code is mixed and and customized from these sources:
- Invidious
- nginx-autoinstall
- Git-Repo-Update
- ghacks user.js updater.sh
- Plus many more.
Feature request and bug reports
- Bug report
- Feature request
- IRC Freenode: #InvidiousUpdater
Donations
- PayPal me
- [BTC] : 3MV69DmhzCqwUnbryeHrKDQxBaM724iJC2
- [BCH] : qznnyvpxym7a8he2ps9m6l44s373fecfnv86h2vwq2
Web Hosting
Sign up for web hosting using this link, and receive $100 in credit over 60 days.
Disclaimer
*** Use at own risk ***