Create install_pve6.sh

This commit is contained in:
spiritLHLS 2023-02-15 10:28:31 +08:00 committed by GitHub
parent 851125fe23
commit 686735cb3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
install_pve6.sh Normal file
View file

@ -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