mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
safely create .ssh folder
This commit is contained in:
parent
20a158c916
commit
a7bcde4178
@ -155,7 +155,7 @@ PS3="Select the Server-Function: "
|
|||||||
pct start $LXC_NBR;
|
pct start $LXC_NBR;
|
||||||
sleep 5;
|
sleep 5;
|
||||||
# Set the root ssh key
|
# Set the root ssh key
|
||||||
pct exec $LXC_NBR -- mkdir /root/.ssh
|
pct exec $LXC_NBR -- mkdir -p /root/.ssh
|
||||||
pct push $LXC_NBR $LXC_AUTHORIZED_KEY /root/.ssh/authorized_keys
|
pct push $LXC_NBR $LXC_AUTHORIZED_KEY /root/.ssh/authorized_keys
|
||||||
pct push $LXC_NBR "$config" /root/zamba.conf
|
pct push $LXC_NBR "$config" /root/zamba.conf
|
||||||
pct exec $LXC_NBR -- sed -i "s,\${service},${service}," /root/zamba.conf
|
pct exec $LXC_NBR -- sed -i "s,\${service},${service}," /root/zamba.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user