mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
Update turnkey-fileserver.sh
test
This commit is contained in:
parent
19a33639dc
commit
a00a0a0ef3
@ -158,8 +158,8 @@ pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/
|
|||||||
# Success message
|
# Success message
|
||||||
msg "Starting LXC Container..."
|
msg "Starting LXC Container..."
|
||||||
pct start "$CTID"
|
pct start "$CTID"
|
||||||
sleep 5
|
#sleep 5
|
||||||
IP=$(pct exec $CTID ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
#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 "TurnKey ${NAME} Password" >>~/turnkey-${NAME}.creds # file is located in the Proxmox root directory
|
||||||
echo $PASS >>~/turnkey-${NAME}.creds
|
echo $PASS >>~/turnkey-${NAME}.creds
|
||||||
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
||||||
@ -167,7 +167,7 @@ if [[ -f /etc/systemd/system/ping-instances.service ]]; then
|
|||||||
fi
|
fi
|
||||||
header_info
|
header_info
|
||||||
echo
|
echo
|
||||||
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
|
info "LXC container '$CTID' was successfully created."
|
||||||
echo
|
echo
|
||||||
info "Proceed to the LXC console to complete the setup."
|
info "Proceed to the LXC console to complete the setup."
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user