safely create .ssh folder

This commit is contained in:
thorstenspille 2023-06-24 18:40:58 +02:00
parent 20a158c916
commit a7bcde4178

View File

@ -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