code optimization (#1020)

This commit is contained in:
tteckster 2023-02-04 22:40:38 -05:00 committed by GitHub
parent 94a5b030ca
commit 3c47725412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
159 changed files with 315 additions and 393 deletions

View file

@ -376,7 +376,7 @@ msg_info "Starting LXC Container"
pct start $CTID
msg_ok "Started LXC Container"
lxc-attach -n $CTID -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/install/$var_install.sh)" || exit
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 | awk '/inet / {print $2}' | cut -d/ -f1)
pct set $CTID -description "# ${APP} LXC
### https://tteck.github.io/Proxmox/
<a href='https://ko-fi.com/D1D7EP4GF'><img src='https://img.shields.io/badge/☕-Buy me a coffee-red' /></a>"