mirror of
https://github.com/Jarli01/xenorchestra_installer
synced 2025-12-27 14:09:58 +00:00
Repo Check fo Multiverse
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user