瀏覽代碼

Update turnkey-fileserver.sh

revert test
tteckster 1 年之前
父節點
當前提交
d5ea1be5a6
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      turnkey/turnkey-fileserver.sh

+ 3 - 3
turnkey/turnkey-fileserver.sh

@@ -158,8 +158,8 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
 # Success message
 msg "Starting LXC Container..."
 pct start "$CTID"
-#sleep 5
-#IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
+sleep 5
+IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
 echo "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
 echo $PASS >>~/turnkey-${NAME}.creds
 if [[ -f /etc/systemd/system/ping-instances.service ]]; then
@@ -167,7 +167,7 @@ if [[ -f /etc/systemd/system/ping-instances.service ]]; then
 fi
 header_info
 echo
-info "LXC container '$CTID' was successfully created."
+info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
 echo
 info "Proceed to the LXC console to complete the setup."
 echo