mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "a00a0a0ef36195ce778db34156568d12f045b1b1" and "0af714731d3544093a040f98ec2bbb0b9ac73d20" have entirely different histories.
a00a0a0ef3
...
0af714731d
25
CHANGELOG.md
25
CHANGELOG.md
|
@ -4,31 +4,12 @@
|
||||||
|
|
||||||
- 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-30
|
## 2023-08-29
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- **TurnKey**
|
- **TurnKey LXC Template Scripts**
|
||||||
- Introducing a **NEW** Category on the Site.
|
- 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)
|
||||||
- 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
|
||||||
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="4"
|
PCT_DISK_SIZE="4"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="8"
|
PCT_DISK_SIZE="8"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
#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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="4"
|
PCT_DISK_SIZE="4"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="8"
|
PCT_DISK_SIZE="8"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="10"
|
PCT_DISK_SIZE="10"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.2-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="4"
|
PCT_DISK_SIZE="4"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="10"
|
PCT_DISK_SIZE="10"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="10"
|
PCT_DISK_SIZE="10"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
|
@ -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}"
|
TEMPLATE_SEARCH="debian-11-turnkey-${NAME}_17.1-1_amd64.tar.gz"
|
||||||
PCT_DISK_SIZE="8"
|
PCT_DISK_SIZE="8"
|
||||||
PCT_OPTIONS="
|
PCT_OPTIONS="
|
||||||
-features keyctl=1,nesting=1
|
-features keyctl=1,nesting=1
|
||||||
|
@ -38,7 +38,6 @@ 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
|
||||||
|
@ -158,19 +157,12 @@ 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
|
info "LXC container '$CTID' was successfully created."
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue