mirror of
https://github.com/thelittlerocket/pve.git
synced 2024-11-15 19:44:38 +08:00
17 lines
540 B
Bash
17 lines
540 B
Bash
#!/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
|