From 686735cb3e8b693e3ca5a46673294e15f7e42d11 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Wed, 15 Feb 2023 10:28:31 +0800 Subject: [PATCH] Create install_pve6.sh --- install_pve6.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install_pve6.sh diff --git a/install_pve6.sh b/install_pve6.sh new file mode 100644 index 0000000..04ab123 --- /dev/null +++ b/install_pve6.sh @@ -0,0 +1,17 @@ +#!/bin/bash +#from https://github.com/spiritLHLS/pve +# pve 7 + +# 前置环境安装 +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi +if ! command -v wget > /dev/null 2>&1; then + apt-get install -y wget +fi +if ! command -v curl > /dev/null 2>&1; then + apt-get install -y curl +fi +curl -L https://raw.githubusercontent.com/spiritLHLS/one-click-installation-script/main/check_sudo.sh -o check_sudo.sh && chmod +x check_sudo.sh && bash check_sudo.sh > /dev/null 2>&1 +hostnamectl set-hostname pve