2021-11-03 03:43:26 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#########################################################################################################################
|
|
|
|
#
|
|
|
|
# Script: install
|
|
|
|
#
|
|
|
|
# https://luchina.com.br
|
|
|
|
#
|
|
|
|
#########################################################################################################################
|
|
|
|
|
2021-11-07 01:15:00 +01:00
|
|
|
clear
|
|
|
|
|
|
|
|
if [ -e /root/OSX-PROXMOX ]; then rm -rf /root/OSX-PROXMOX; fi;
|
|
|
|
if [ -e /etc/apt/sources.list.d/pve-enterprise.list ]; then rm -rf /etc/apt/sources.list.d/pve-enterprise.list; fi;
|
|
|
|
|
|
|
|
echo "Waiting install OSX-PROXMOX..."
|
|
|
|
echo " "
|
|
|
|
|
2021-11-04 19:59:20 +01:00
|
|
|
apt update > /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log
|
2021-11-07 01:15:00 +01:00
|
|
|
|
|
|
|
if [ $? -ne 0 ]
|
|
|
|
then
|
|
|
|
echo " "
|
|
|
|
echo "Error with 'apt-get update' ..."
|
|
|
|
echo "Trying to change /etc/apt/sources.list"
|
|
|
|
echo " "
|
|
|
|
|
|
|
|
sed -i 's/ftp.br.debian.org/ftp.debian.org/g' /etc/apt/sources.list
|
|
|
|
|
|
|
|
echo "Retrying 'apt-get update' ..."
|
|
|
|
echo " "
|
|
|
|
|
|
|
|
apt-get update >> /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then echo "Error with 'apt-get update' ..."; exit; fi
|
|
|
|
fi
|
|
|
|
|
2021-11-04 20:02:52 +01:00
|
|
|
apt install git -y >> /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log
|
2021-11-03 03:43:26 +01:00
|
|
|
|
2021-11-04 20:02:52 +01:00
|
|
|
git clone https://github.com/luchina-gabriel/OSX-PROXMOX.git >> /tmp/install-osx-proxmox.log 2>> /tmp/install-osx-proxmox.log
|
2021-11-04 19:59:20 +01:00
|
|
|
|
2021-11-04 02:37:14 +01:00
|
|
|
if [ ! -e /root/OSX-PROXMOX ]; then mkdir -p /root/OSX-PROXMOX; fi;
|
|
|
|
|
2021-11-03 03:43:26 +01:00
|
|
|
/root/OSX-PROXMOX/setup
|