mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "5bf0944dd986919908736ef780b8bfead8c01b2d" and "46a2b14b09f8fbde6d888c78d019da75805fc48e" have entirely different histories.
5bf0944dd9
...
46a2b14b09
|
@ -5,7 +5,7 @@
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
verb_ip6
|
verb_ip6
|
||||||
catch_errors
|
catch_errors
|
||||||
|
@ -20,20 +20,17 @@ $STD apt-get install -y mc
|
||||||
$STD apt-get install -y git
|
$STD apt-get install -y git
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Updating Python3"
|
msg_info "Installing Python3-pip"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y python3-pip
|
||||||
python3 \
|
msg_ok "Installed Python3-pip"
|
||||||
python3-dev \
|
|
||||||
python3-pip \
|
|
||||||
python3-venv
|
|
||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
|
||||||
msg_ok "Updated Python3"
|
|
||||||
|
|
||||||
msg_info "Installing ESPHome"
|
msg_info "Installing ESPHome"
|
||||||
$STD pip install esphome tornado esptool
|
$STD pip3 install esphome
|
||||||
msg_ok "Installed ESPHome"
|
msg_ok "Installed ESPHome"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Installing ESPHome Dashboard"
|
||||||
|
$STD pip3 install tornado esptool
|
||||||
|
|
||||||
service_path="/etc/systemd/system/esphomeDashboard.service"
|
service_path="/etc/systemd/system/esphomeDashboard.service"
|
||||||
echo "[Unit]
|
echo "[Unit]
|
||||||
Description=ESPHome Dashboard
|
Description=ESPHome Dashboard
|
||||||
|
@ -44,8 +41,9 @@ Restart=always
|
||||||
User=root
|
User=root
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target" >$service_path
|
||||||
systemctl enable -q --now esphomeDashboard.service
|
$STD systemctl enable esphomeDashboard.service
|
||||||
msg_ok "Created Service"
|
systemctl start esphomeDashboard
|
||||||
|
msg_ok "Installed ESPHome Dashboard"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
|
@ -13,12 +13,16 @@ setting_up_container
|
||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies, (Patience)"
|
msg_info "Installing Dependencies, (Patience)"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
sudo \
|
sudo \
|
||||||
mc \
|
mc \
|
||||||
|
python3 \
|
||||||
|
python3-dev \
|
||||||
|
python3-venv \
|
||||||
|
python3-pip \
|
||||||
bluez \
|
bluez \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
@ -35,16 +39,7 @@ $STD apt-get install -y \
|
||||||
libpcap-dev \
|
libpcap-dev \
|
||||||
libmariadb-dev-compat \
|
libmariadb-dev-compat \
|
||||||
libatlas-base-dev
|
libatlas-base-dev
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Updating Python3"
|
|
||||||
$STD apt-get install -y \
|
|
||||||
python3 \
|
|
||||||
python3-dev \
|
|
||||||
python3-pip \
|
|
||||||
python3-venv
|
|
||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
|
||||||
msg_ok "Updated Python3"
|
|
||||||
|
|
||||||
if [[ "$PCT_OSVERSION" == "11" ]]; then
|
if [[ "$PCT_OSVERSION" == "11" ]]; then
|
||||||
msg_info "Installing pyenv"
|
msg_info "Installing pyenv"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
verb_ip6
|
verb_ip6
|
||||||
catch_errors
|
catch_errors
|
||||||
|
@ -19,17 +19,18 @@ $STD apt-get install -y sudo
|
||||||
$STD apt-get install -y mc
|
$STD apt-get install -y mc
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Updating Python3"
|
|
||||||
$STD apt-get install -y \
|
|
||||||
python3 \
|
|
||||||
python3-dev \
|
|
||||||
python3-pip \
|
|
||||||
python3-venv
|
|
||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
|
||||||
msg_ok "Updated Python3"
|
|
||||||
|
|
||||||
msg_info "Installing runlike"
|
msg_info "Installing runlike"
|
||||||
$STD pip install runlike
|
$STD apt-get install -y \
|
||||||
|
python3 \
|
||||||
|
python3-dev \
|
||||||
|
python3-pip \
|
||||||
|
python3-venv
|
||||||
|
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||||
|
$STD apt-get install -y pipx
|
||||||
|
$STD pipx install runlike
|
||||||
|
else
|
||||||
|
$STD pip3 install runlike
|
||||||
|
fi
|
||||||
msg_ok "Installed runlike"
|
msg_ok "Installed runlike"
|
||||||
|
|
||||||
get_latest_release() {
|
get_latest_release() {
|
||||||
|
@ -44,14 +45,14 @@ msg_info "Installing Docker $DOCKER_LATEST_VERSION"
|
||||||
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
|
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
|
||||||
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
|
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
|
||||||
if [ "$ST" == "yes" ]; then
|
if [ "$ST" == "yes" ]; then
|
||||||
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
VER=$(curl -s https://api.github.com/repos/containers/fuse-overlayfs/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
|
curl -sSL -o fuse-overlayfs https://github.com/containers/fuse-overlayfs/releases/download/$VER/fuse-overlayfs-x86_64
|
||||||
chmod 755 /usr/local/bin/fuse-overlayfs
|
chmod 755 /usr/local/bin/fuse-overlayfs
|
||||||
cd ~
|
cd ~
|
||||||
echo -e '{\n "storage-driver": "fuse-overlayfs",\n "log-driver": "journald"\n}' >/etc/docker/daemon.json
|
echo -e '{\n "storage-driver": "fuse-overlayfs",\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
|
||||||
else
|
else
|
||||||
echo -e '{\n "log-driver": "journald"\n}' >/etc/docker/daemon.json
|
echo -e '{\n "log-driver": "journald"\n}' > /etc/docker/daemon.json
|
||||||
fi
|
fi
|
||||||
$STD sh <(curl -sSL https://get.docker.com)
|
$STD sh <(curl -sSL https://get.docker.com)
|
||||||
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
|
msg_ok "Installed Docker $DOCKER_LATEST_VERSION"
|
||||||
|
@ -88,7 +89,7 @@ $STD docker run -d \
|
||||||
-v /etc/localtime:/etc/localtime:ro \
|
-v /etc/localtime:/etc/localtime:ro \
|
||||||
--net=host \
|
--net=host \
|
||||||
homeassistant/home-assistant:stable
|
homeassistant/home-assistant:stable
|
||||||
mkdir /root/hass_config
|
mkdir /root/hass_config
|
||||||
msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
|
msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
||||||
color
|
color
|
||||||
verb_ip6
|
verb_ip6
|
||||||
catch_errors
|
catch_errors
|
||||||
|
@ -30,20 +30,19 @@ $STD apt-get -y install \
|
||||||
git
|
git
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Updating Python"
|
msg_info "Installing Python"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
python3-cffi \
|
python3-cffi \
|
||||||
python3-certbot \
|
python3-certbot \
|
||||||
python3-certbot-dns-cloudflare
|
python3-certbot-dns-cloudflare
|
||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
|
||||||
$STD python3 -m venv /opt/certbot/
|
$STD python3 -m venv /opt/certbot/
|
||||||
msg_ok "Updated Python"
|
msg_ok "Installed Python"
|
||||||
|
|
||||||
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
VERSION="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )"
|
||||||
|
|
||||||
msg_info "Installing Openresty"
|
msg_info "Installing Openresty"
|
||||||
wget -qO - https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty-archive-keyring.gpg
|
wget -qO - https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/openresty-archive-keyring.gpg
|
||||||
|
|
Loading…
Reference in New Issue