mirror of
https://github.com/Jarli01/xenorchestra_installer
synced 2025-12-23 03:59:59 +00:00
Compare commits
4 Commits
Performanc
...
Multiverse
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
90965ab4ec | ||
|
|
7d9ec145f1 | ||
|
|
b3d41b6fb9 | ||
|
|
7f7195eadf |
@@ -1,10 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/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
|
|
||||||
|
|
||||||
# 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; }
|
||||||
|
|
||||||
@@ -12,6 +7,12 @@ sudo apt upgrade
|
|||||||
totalk=$(awk '/^MemTotal:/{print $2}' /proc/meminfo)
|
totalk=$(awk '/^MemTotal:/{print $2}' /proc/meminfo)
|
||||||
if [ "$totalk" -lt "1000000" ]; then echo "XOCE Requires at least 1GB Memory!"; exit 1; fi
|
if [ "$totalk" -lt "1000000" ]; then echo "XOCE Requires at least 1GB Memory!"; exit 1; fi
|
||||||
|
|
||||||
|
# Repository add - confirm required repoistor(ies) are enabled and active, update and upgrade no matter what
|
||||||
|
multiverse="http://archive.ubuntu.com/multiverse"
|
||||||
|
if ! grep -q "^deb .*$multiverse" /etc/apt/sources.list;
|
||||||
|
then
|
||||||
|
sudo add-apt-repository multiverse
|
||||||
|
|
||||||
xo_branch="master"
|
xo_branch="master"
|
||||||
xo_server="https://github.com/vatesfr/xen-orchestra"
|
xo_server="https://github.com/vatesfr/xen-orchestra"
|
||||||
n_repo="https://raw.githubusercontent.com/visionmedia/n/master/bin/n"
|
n_repo="https://raw.githubusercontent.com/visionmedia/n/master/bin/n"
|
||||||
@@ -89,4 +90,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