Repo Check fo Multiverse

This commit is contained in:
Dustin B
2018-07-31 16:56:01 -04:00
committed by GitHub
parent 6aa162aaaa
commit 7f7195eadf

View File

@@ -1,9 +1,11 @@
#!/bin/bash
#Repository add - confirm required repoistor(ies) are enabled and active, update and upgrade no matter what
add-apt-repository multiverse
sudo apt update
sudo apt upgrade
multiverse="http://archive.ubuntu.com/multiverse"
if ! grep -q "^deb .*$multiverse" /etc/apt/sources.list;
then
sudo add-apt-repository multiverse
else
# Check if we were effectively run as root
[ $EUID = 0 ] || { echo "This script needs to be run as root!"; exit 1; }
@@ -89,4 +91,4 @@ fi
echo ""
echo ""
echo "Installation complete, open a browser to:" && hostname -I && echo "" && echo "Default Login:"admin@admin.net" Password:"admin"" && echo "" && echo "Don't forget to change your password!"
fi