mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-28 10:40:07 +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=
|
||||
#DRIVE=
|
||||
#PCT_EXTRA=
|
||||
# XXX
|
||||
pctCreate(){
|
||||
# build network args...
|
||||
local interfaces_args=()
|
||||
|
||||
@ -56,12 +56,18 @@ OPTS_STAGE_2="\
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
echo "# Building config..."
|
||||
buildAssets
|
||||
|
||||
echo "# Creating CT..."
|
||||
pctCreateDebian $ID "$PASS"
|
||||
|
||||
echo "# Installing dependencies..."
|
||||
@ lxc-attach $ID -- bash -c 'yes | apt install vim htop iftop iotop tmux mc sudo'
|
||||
|
||||
echo "# Copying assets..."
|
||||
pctPushAssets $ID
|
||||
|
||||
echo "# Setup: users..."
|
||||
while true ; do
|
||||
xread "user name for ssh: " SSH_USER
|
||||
|
||||
@ -57,12 +57,12 @@ buildAssets
|
||||
echo "# Creating CT..."
|
||||
pctCreateAlpine $ID "$PASS"
|
||||
|
||||
echo "# Copying assets..."
|
||||
pctPushAssets $ID
|
||||
|
||||
echo "# Installing dependencies..."
|
||||
@ lxc-attach $ID apk add bash syncthing logrotate
|
||||
|
||||
echo "# Copying assets..."
|
||||
pctPushAssets $ID
|
||||
|
||||
echo "# Setup: sysctl..."
|
||||
@ lxc-attach $ID rc-update add sysctl
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user