Compare commits

..

5 Commits

Author SHA1 Message Date
tteckster a00a0a0ef3
Update turnkey-fileserver.sh
test
2023-08-30 16:54:55 -04:00
tteckster 19a33639dc
tweak turnkey scripts 2023-08-30 16:00:13 -04:00
tteckster 4b076f8c19
tweak turnkey scripts 2023-08-30 14:04:52 -04:00
tteckster ac469960bc
Update CHANGELOG.md 2023-08-30 13:09:59 -04:00
tteckster 4bc2a87189
Update CHANGELOG.md 2023-08-30 13:02:57 -04:00
10 changed files with 112 additions and 21 deletions

View File

@ -4,12 +4,31 @@
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment. - All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
## 2023-08-29 ## 2023-08-30
### Changed ### Changed
- **TurnKey LXC Template Scripts** - **TurnKey**
- Primitive [scripts](https://github.com/tteck/Proxmox/tree/main/turnkey) to install [TurnKey LXC templates](https://www.turnkeylinux.org/) using basic settings. [More info](https://github.com/tteck/Proxmox/discussions/1742#discussion-5571966) - Introducing a **NEW** Category on the Site.
- My intention is to maintain the TurnKey scripts in their simplest form, contained within a single file, and with minimal options, if any.
- **TurnKey Core LXC**
- NEW Script
- **TurnKey File Server LXC**
- NEW Script
- **TurnKey Gitea LXC**
- NEW Script
- **TurnKey GitLab LXC**
- NEW Script
- **TurnKey Nextcloud LXC**
- NEW Script
- **TurnKey Observium LXC**
- NEW Script
- **TurnKey ownCloud LXC**
- NEW Script
- **TurnKey Torrent Server LXC**
- NEW Script
- **TurnKey Wordpress LXC**
- NEW Script
## 2023-08-24 ## 2023-08-24

View File

@ -10,7 +10,7 @@
NAME="core" NAME="core"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="4" PCT_DISK_SIZE="4"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="fileserver" NAME="fileserver"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="8" PCT_DISK_SIZE="8"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." #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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="gitea" NAME="gitea"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="4" PCT_DISK_SIZE="4"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="gitlab" NAME="gitlab"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="8" PCT_DISK_SIZE="8"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="nextcloud" NAME="nextcloud"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="10" PCT_DISK_SIZE="10"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="observium" NAME="observium"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="4" PCT_DISK_SIZE="4"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="owncloud" NAME="owncloud"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="10" PCT_DISK_SIZE="10"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="torrentserver" NAME="torrentserver"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="10" PCT_DISK_SIZE="10"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo

View File

@ -10,7 +10,7 @@
NAME="wordpress" NAME="wordpress"
PASS="$(openssl rand -base64 8)" PASS="$(openssl rand -base64 8)"
CTID=$(pvesh get /cluster/nextid) CTID=$(pvesh get /cluster/nextid)
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz" TEMPLATE_SEARCH="debian-11-turnkey-${NAME}"
PCT_DISK_SIZE="8" PCT_DISK_SIZE="8"
PCT_OPTIONS=" PCT_OPTIONS="
-features keyctl=1,nesting=1 -features keyctl=1,nesting=1
@ -38,6 +38,7 @@ EOF
} }
header_info header_info
read -p "Press ENTER to continue..." read -p "Press ENTER to continue..."
header_info
set -o errexit #Exit immediately if a pipeline returns a non-zero status set -o errexit #Exit immediately if a pipeline returns a non-zero status
set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell set -o errtrace #Trap ERR from shell functions, command substitutions, and commands from subshell
set -o nounset #Treat unset variables as an error set -o nounset #Treat unset variables as an error
@ -157,12 +158,19 @@ 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"
info "LXC container '$CTID' was successfully created." 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 "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
systemctl start ping-instances.service systemctl start ping-instances.service
fi fi
header_info
echo
info "LXC container '$CTID' was successfully created, and its IP address is ${IP}."
echo
info "Proceed to the LXC console to complete the setup." info "Proceed to the LXC console to complete the setup."
echo
info "login: root" info "login: root"
info "password: $PASS" info "password: $PASS"
echo