mirror of
https://github.com/Jarli01/xenorchestra_installer
synced 2026-07-29 18:01:21 +00:00
Repo Check fo Multiverse
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#Repository add - confirm required repoistor(ies) are enabled and active, update and upgrade no matter what
|
#Repository add - confirm required repoistor(ies) are enabled and active, update and upgrade no matter what
|
||||||
add-apt-repository multiverse
|
multiverse="http://archive.ubuntu.com/multiverse"
|
||||||
sudo apt update
|
if ! grep -q "^deb .*$multiverse" /etc/apt/sources.list;
|
||||||
sudo apt upgrade
|
then
|
||||||
|
sudo add-apt-repository multiverse
|
||||||
|
else
|
||||||
|
|
||||||
# Check if we were effectively run as root
|
# Check if we were effectively run as root
|
||||||
[ $EUID = 0 ] || { echo "This script needs to be run as root!"; exit 1; }
|
[ $EUID = 0 ] || { echo "This script needs to be run as root!"; exit 1; }
|
||||||
@@ -89,4 +91,4 @@ fi
|
|||||||
echo ""
|
echo ""
|
||||||
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!"
|
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