From 8a0ad63111ff651147ace15d8029a2c42bdc6243 Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Tue, 20 Apr 2021 23:26:12 +0200 Subject: [PATCH] Fixed `install.sh` --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c528bb1..35b2f2e 100644 --- a/install.sh +++ b/install.sh @@ -119,11 +119,17 @@ PS3="Select the Server-Function: " pct start $LXC_NBR; sleep 5; # Set the root password and key +echo "Setting root password" echo -e "$LXC_PWD\n$LXC_PWD" | lxc-attach -n$LXC_NBR passwd; -lxc-attach -n$LXC_NBR mkdir -p /root/.ssh; -pct push $LXC_AUTHORIZED_KEY /root/.ssh/authorized_keys +echo "Creating /root/.ssh" +lxc-attach -n$LXC_NBR mkdir /root/.ssh; +echo "Copying authorized_keys" +pct push $LXC_NBR $LXC_AUTHORIZED_KEY /root/.ssh/authorized_keys +echo "Copying sources.list" pct push $LXC_NBR ./sources.list /etc/apt/sources.list +echo "Copying zamba.conf" pct push $LXC_NBR ./zamba.conf /root/zamba.conf +echo "Copying install script" pct push $LXC_NBR ./$opt.sh /root/$opt.sh echo "Install '$opt'!" lxc-attach -n$LXC_NBR bash /root/$opt.sh