mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Compare commits
No commits in common. "f725d8ec18b7cf021020cecc7453c686aa62462f" and "218ec5dd7885cbbe2fbd79365cd44f0a767e3f88" have entirely different histories.
f725d8ec18
...
218ec5dd78
1 changed files with 10 additions and 18 deletions
|
|
@ -372,7 +372,7 @@ case $distro in
|
|||
supervisor_conf_path=/etc/supervisor/conf.d
|
||||
supervisor_file_name=webvirtcloud.conf
|
||||
;;
|
||||
*centos*|*redhat*|*ol*|*rhel*|*rocky*|*Rocky*|*alma*)
|
||||
*centos*|*redhat*|*ol*|*rhel*|*rocky*|*alma*)
|
||||
echo " The installer has detected $distro version $version."
|
||||
distro=centos
|
||||
nginx_group=nginx
|
||||
|
|
@ -469,9 +469,7 @@ fi
|
|||
echo " Setting novnc host ip $novncd_host"
|
||||
echo ""
|
||||
|
||||
echo "========="
|
||||
echo "distro: ${distro}"
|
||||
echo "========="
|
||||
|
||||
case $distro in
|
||||
debian)
|
||||
if [[ "$version" -ge 9 ]]; then
|
||||
|
|
@ -483,8 +481,7 @@ case $distro in
|
|||
progress
|
||||
|
||||
echo "* Installing OS requirements."
|
||||
PACKAGES="git virtualenv python3-virtualenv python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev libsasl2-dev libldap2-dev nginx smbios-utils libsasl2-modules gcc pkg-config python3-guestfs uuid"
|
||||
|
||||
PACKAGES="git virtualenv python3-virtualenv python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev libsasl2-dev libldap2-dev nginx supervisor smbios-utils libsasl2-modules gcc pkg-config python3-guestfs uuid"
|
||||
install_packages
|
||||
|
||||
set_hosts
|
||||
|
|
@ -495,7 +492,6 @@ case $distro in
|
|||
configure_nginx
|
||||
|
||||
echo "* Configuring Supervisor."
|
||||
log "pip install supervisor "
|
||||
configure_supervisor
|
||||
|
||||
restart_supervisor
|
||||
|
|
@ -512,7 +508,7 @@ case $distro in
|
|||
progress
|
||||
|
||||
echo "* Installing OS requirements."
|
||||
PACKAGES="git virtualenv python3-virtualenv python3-pip python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev nginx libsasl2-modules gcc pkg-config python3-guestfs"
|
||||
PACKAGES="git virtualenv python3-virtualenv python3-pip python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev nginx supervisor libsasl2-modules gcc pkg-config python3-guestfs"
|
||||
install_packages
|
||||
|
||||
set_hosts
|
||||
|
|
@ -523,7 +519,6 @@ case $distro in
|
|||
configure_nginx
|
||||
|
||||
echo "* Configuring Supervisor."
|
||||
log "pip install supervisor "
|
||||
configure_supervisor
|
||||
|
||||
restart_supervisor
|
||||
|
|
@ -532,7 +527,7 @@ case $distro in
|
|||
fi
|
||||
;;
|
||||
centos)
|
||||
if [[ "$version" =~ ^8 ]] || [[ "$version" =~ ^9 ]]; then
|
||||
if [[ "$version" =~ ^8 ]]; then
|
||||
# Install for CentOS/Redhat 8
|
||||
tzone=\'$(timedatectl|grep "Time zone"| awk '{print $3}')\'
|
||||
|
||||
|
|
@ -540,7 +535,7 @@ case $distro in
|
|||
log "yum -y install wget epel-release"
|
||||
|
||||
echo "* Installing OS requirements."
|
||||
PACKAGES="git python3-virtualenv python3-devel libvirt-devel glibc gcc nginx python3-lxml python3-libguestfs iproute-tc cyrus-sasl-md5 openldap-devel"
|
||||
PACKAGES="git python3-virtualenv python3-devel libvirt-devel glibc gcc nginx supervisor python3-lxml python3-libguestfs iproute-tc cyrus-sasl-md5"
|
||||
install_packages
|
||||
|
||||
set_hosts
|
||||
|
|
@ -551,7 +546,6 @@ case $distro in
|
|||
configure_nginx
|
||||
|
||||
echo "* Configuring Supervisor."
|
||||
log "pip install supervisor "
|
||||
configure_supervisor
|
||||
|
||||
set_firewall
|
||||
|
|
@ -574,9 +568,9 @@ case $distro in
|
|||
|
||||
echo "* Installing OS requirements."
|
||||
if test "${codename}" == "eagle"; then
|
||||
PACKAGES="git virtualenv python3-virtualenv python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev nginx libsasl2-modules gcc pkg-config python3-guestfs uuid"
|
||||
PACKAGES="git virtualenv python3-virtualenv python3-dev python3-lxml libvirt-dev zlib1g-dev libxslt1-dev nginx supervisor libsasl2-modules gcc pkg-config python3-guestfs uuid"
|
||||
else
|
||||
PACKAGES="git python3-virtualenv python3-devel python3-pip libvirt-devel glibc gcc nginx python3-lxml python3-libguestfs iproute-tc cyrus-sasl-md5"
|
||||
PACKAGES="git python3-virtualenv python3-devel python3-pip libvirt-devel glibc gcc nginx supervisor python3-lxml python3-libguestfs iproute-tc cyrus-sasl-md5"
|
||||
fi
|
||||
install_packages
|
||||
|
||||
|
|
@ -588,7 +582,6 @@ case $distro in
|
|||
configure_nginx
|
||||
|
||||
echo "* Configuring Supervisor."
|
||||
log "pip install supervisor "
|
||||
configure_supervisor
|
||||
|
||||
set_firewall
|
||||
|
|
@ -605,7 +598,7 @@ case $distro in
|
|||
tzone=\'$(timedatectl|grep "Time zone"| awk '{print $3}')\'
|
||||
|
||||
echo "* Installing OS requirements."
|
||||
PACKAGES="git python3-virtualenv python3-devel python3-pip libvirt-devel glibc gcc nginx python3-lxml python3-libguestfs iproute-tc cyrus-sasl-md5"
|
||||
PACKAGES="git python3-virtualenv python3-devel python3-pip libvirt-devel glibc gcc nginx supervisor python3-lxml python3-libguestfs iproute-tc cyrus-sasl-md5"
|
||||
install_packages
|
||||
|
||||
set_hosts
|
||||
|
|
@ -616,7 +609,6 @@ case $distro in
|
|||
configure_nginx
|
||||
|
||||
echo "* Configuring Supervisor."
|
||||
log "pip install supervisor "
|
||||
configure_supervisor
|
||||
|
||||
set_firewall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue