forked from bashclub/zamba-lxc-toolbox
Fixed install.sh
This commit is contained in:
parent
50f88fb1e0
commit
8a0ad63111
10
install.sh
10
install.sh
@ -119,11 +119,17 @@ PS3="Select the Server-Function: "
|
|||||||
pct start $LXC_NBR;
|
pct start $LXC_NBR;
|
||||||
sleep 5;
|
sleep 5;
|
||||||
# Set the root password and key
|
# Set the root password and key
|
||||||
|
echo "Setting root password"
|
||||||
echo -e "$LXC_PWD\n$LXC_PWD" | lxc-attach -n$LXC_NBR passwd;
|
echo -e "$LXC_PWD\n$LXC_PWD" | lxc-attach -n$LXC_NBR passwd;
|
||||||
lxc-attach -n$LXC_NBR mkdir -p /root/.ssh;
|
echo "Creating /root/.ssh"
|
||||||
pct push $LXC_AUTHORIZED_KEY /root/.ssh/authorized_keys
|
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
|
pct push $LXC_NBR ./sources.list /etc/apt/sources.list
|
||||||
|
echo "Copying zamba.conf"
|
||||||
pct push $LXC_NBR ./zamba.conf /root/zamba.conf
|
pct push $LXC_NBR ./zamba.conf /root/zamba.conf
|
||||||
|
echo "Copying install script"
|
||||||
pct push $LXC_NBR ./$opt.sh /root/$opt.sh
|
pct push $LXC_NBR ./$opt.sh /root/$opt.sh
|
||||||
echo "Install '$opt'!"
|
echo "Install '$opt'!"
|
||||||
lxc-attach -n$LXC_NBR bash /root/$opt.sh
|
lxc-attach -n$LXC_NBR bash /root/$opt.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user