mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
Update esphome_container.sh
This commit is contained in:
parent
807471e0a7
commit
87b2205759
@ -65,7 +65,7 @@ TEMP_DIR=$(mktemp -d)
|
|||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
|
|
||||||
# Download setup script
|
# Download setup script
|
||||||
wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/setup1.sh
|
wget -qL https://raw.githubusercontent.com/tteck/Proxmox/main/esphome_setup.sh
|
||||||
|
|
||||||
# Detect modules and automatically load at boot
|
# Detect modules and automatically load at boot
|
||||||
load_module overlay
|
load_module overlay
|
||||||
@ -151,9 +151,9 @@ pct unmount $CTID && unset MOUNT
|
|||||||
# Setup container
|
# Setup container
|
||||||
msg "Starting LXC container..."
|
msg "Starting LXC container..."
|
||||||
pct start $CTID
|
pct start $CTID
|
||||||
pct push $CTID setup1.sh /setup1.sh -perms 755
|
pct push $CTID esphome_setup.sh /esphome_setup.sh -perms 755
|
||||||
pct exec $CTID /setup1.sh
|
pct exec $CTID /esphome_setup.sh
|
||||||
|
|
||||||
# Get network details and show completion message
|
# Get network details and show completion message
|
||||||
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
|
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
|
||||||
info "Successfully created esphome LXC Container to $CTID at IP Address ${IP}:6052"
|
info "Successfully created ESPHome LXC Container to $CTID at IP Address ${IP}:6052"
|
||||||
|
Loading…
Reference in New Issue
Block a user