mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "885f5a9a2b020083a224fc06eb3841f25b100d9d" and "4689cbc5e559da8e0a462dad70902fdc0aea2ef0" have entirely different histories.
885f5a9a2b
...
4689cbc5e5
|
@ -52,17 +52,6 @@ msg_error() {
|
|||
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
|
||||
}
|
||||
|
||||
# Run as root only
|
||||
check_root() {
|
||||
if [[ "$(id -u)" -ne 0 || $(ps -o comm= -p $PPID) == "sudo" ]]; then
|
||||
clear
|
||||
msg_error "Please run this script as root."
|
||||
echo -e "\nExiting..."
|
||||
sleep 2
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
|
||||
pve_check() {
|
||||
if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
|
||||
|
@ -430,7 +419,6 @@ advanced_settings() {
|
|||
}
|
||||
|
||||
install_script() {
|
||||
check_root
|
||||
ssh_check
|
||||
arch_check
|
||||
pve_check
|
||||
|
|
Loading…
Reference in New Issue