mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 19:20:10 +00:00
tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1a262600ee
commit
53ac9fc694
10
ssh/make.sh
10
ssh/make.sh
@ -67,14 +67,12 @@ echo "# Creating CT..."
|
|||||||
pctCreateDebian $ID "${OPTS_STAGE_1}" "$PASS"
|
pctCreateDebian $ID "${OPTS_STAGE_1}" "$PASS"
|
||||||
|
|
||||||
echo "# Installing dependencies..."
|
echo "# Installing dependencies..."
|
||||||
@ lxc-attach $ID apt install vim htop iftop iotop tmux mc
|
@ lxc-attach $ID apt install -y vim htop iftop iotop tmux mc
|
||||||
|
|
||||||
echo "# Setup: sshd..."
|
|
||||||
@ lxc-attach $ID -- systemctl enable ssh.socket --now
|
|
||||||
|
|
||||||
echo "# Setup: user..."
|
echo "# Setup: user..."
|
||||||
xread "ssh user name: " USER
|
xread "ssh user name: " SSH_USER
|
||||||
@ lxc-attach $ID adduser $USER
|
[ -z $SSH_USER ] \
|
||||||
|
|| @ lxc-attach $ID adduser $SSH_USER
|
||||||
|
|
||||||
echo "# Post config..."
|
echo "# Post config..."
|
||||||
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user