mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-14 11:04:32 +08:00
Create install_pve6.sh
This commit is contained in:
parent
851125fe23
commit
686735cb3e
1 changed files with 17 additions and 0 deletions
17
install_pve6.sh
Normal file
17
install_pve6.sh
Normal 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
|
Loading…
Reference in a new issue