mirror of https://github.com/tteck/Proxmox.git
Compare commits
8 Commits
46a2b14b09
...
5bf0944dd9
Author | SHA1 | Date |
---|---|---|
|
5bf0944dd9 | |
|
68e3b934ab | |
|
c853c24a96 | |
|
b90925f553 | |
|
8ff4c713be | |
|
551a9a708c | |
|
ddd5b89be4 | |
|
bbd7ad39f6 |
|
@ -20,17 +20,20 @@ $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 "Installing Python3-pip"
|
msg_info "Updating Python3"
|
||||||
$STD apt-get install -y python3-pip
|
$STD apt-get install -y \
|
||||||
msg_ok "Installed Python3-pip"
|
python3 \
|
||||||
|
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 pip3 install esphome
|
$STD pip install esphome tornado esptool
|
||||||
msg_ok "Installed ESPHome"
|
msg_ok "Installed ESPHome"
|
||||||
|
|
||||||
msg_info "Installing ESPHome Dashboard"
|
msg_info "Creating Service"
|
||||||
$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
|
||||||
|
@ -41,9 +44,8 @@ Restart=always
|
||||||
User=root
|
User=root
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target" >$service_path
|
||||||
$STD systemctl enable esphomeDashboard.service
|
systemctl enable -q --now esphomeDashboard.service
|
||||||
systemctl start esphomeDashboard
|
msg_ok "Created Service"
|
||||||
msg_ok "Installed ESPHome Dashboard"
|
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
|
@ -19,10 +19,6 @@ update_os
|
||||||
curl \
|
curl \
|
||||||
sudo \
|
sudo \
|
||||||
mc \
|
mc \
|
||||||
python3 \
|
|
||||||
python3-dev \
|
|
||||||
python3-venv \
|
|
||||||
python3-pip \
|
|
||||||
bluez \
|
bluez \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
@ -41,6 +37,15 @@ update_os
|
||||||
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"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
|
|
|
@ -19,18 +19,17 @@ $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 "Installing runlike"
|
msg_info "Updating Python3"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-venv
|
python3-venv
|
||||||
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||||
$STD apt-get install -y pipx
|
msg_ok "Updated Python3"
|
||||||
$STD pipx install runlike
|
|
||||||
else
|
msg_info "Installing runlike"
|
||||||
$STD pip3 install runlike
|
$STD pip install runlike
|
||||||
fi
|
|
||||||
msg_ok "Installed runlike"
|
msg_ok "Installed runlike"
|
||||||
|
|
||||||
get_latest_release() {
|
get_latest_release() {
|
||||||
|
|
|
@ -30,7 +30,7 @@ $STD apt-get -y install \
|
||||||
git
|
git
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Python"
|
msg_info "Updating Python"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
|
@ -39,8 +39,9 @@ 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 "Installed Python"
|
msg_ok "Updated Python"
|
||||||
|
|
||||||
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue