mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 03:00:09 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d58b384e0a
commit
ee5d4dbb99
@ -657,7 +657,6 @@ pctBaseCreate(){
|
|||||||
#SWAP=
|
#SWAP=
|
||||||
#DRIVE=
|
#DRIVE=
|
||||||
#PCT_EXTRA=
|
#PCT_EXTRA=
|
||||||
# XXX
|
|
||||||
pctCreate(){
|
pctCreate(){
|
||||||
# build network args...
|
# build network args...
|
||||||
local interfaces_args=()
|
local interfaces_args=()
|
||||||
|
|||||||
@ -56,12 +56,18 @@ OPTS_STAGE_2="\
|
|||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
echo "# Building config..."
|
||||||
|
buildAssets
|
||||||
|
|
||||||
echo "# Creating CT..."
|
echo "# Creating CT..."
|
||||||
pctCreateDebian $ID "$PASS"
|
pctCreateDebian $ID "$PASS"
|
||||||
|
|
||||||
echo "# Installing dependencies..."
|
echo "# Installing dependencies..."
|
||||||
@ lxc-attach $ID -- bash -c 'yes | apt install vim htop iftop iotop tmux mc sudo'
|
@ lxc-attach $ID -- bash -c 'yes | apt install vim htop iftop iotop tmux mc sudo'
|
||||||
|
|
||||||
|
echo "# Copying assets..."
|
||||||
|
pctPushAssets $ID
|
||||||
|
|
||||||
echo "# Setup: users..."
|
echo "# Setup: users..."
|
||||||
while true ; do
|
while true ; do
|
||||||
xread "user name for ssh: " SSH_USER
|
xread "user name for ssh: " SSH_USER
|
||||||
|
|||||||
@ -57,12 +57,12 @@ buildAssets
|
|||||||
echo "# Creating CT..."
|
echo "# Creating CT..."
|
||||||
pctCreateAlpine $ID "$PASS"
|
pctCreateAlpine $ID "$PASS"
|
||||||
|
|
||||||
echo "# Copying assets..."
|
|
||||||
pctPushAssets $ID
|
|
||||||
|
|
||||||
echo "# Installing dependencies..."
|
echo "# Installing dependencies..."
|
||||||
@ lxc-attach $ID apk add bash syncthing logrotate
|
@ lxc-attach $ID apk add bash syncthing logrotate
|
||||||
|
|
||||||
|
echo "# Copying assets..."
|
||||||
|
pctPushAssets $ID
|
||||||
|
|
||||||
echo "# Setup: sysctl..."
|
echo "# Setup: sysctl..."
|
||||||
@ lxc-attach $ID rc-update add sysctl
|
@ lxc-attach $ID rc-update add sysctl
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user