create .ssh dir if it doesnt exist
This commit is contained in:
parent
b374468437
commit
92ac34b90a
@ -48,4 +48,10 @@ sort -u "$WORK_DIR/authorized_keys.tmp" > "$WORK_DIR/authorized_keys.wip"
|
|||||||
|
|
||||||
# cat "$WORK_DIR/authorized_keys.wip"
|
# cat "$WORK_DIR/authorized_keys.wip"
|
||||||
|
|
||||||
|
if [[ ! -d "$HOME/.ssh" ]]; then
|
||||||
|
|
||||||
|
mkdir -p "$HOME/.ssh"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
cp "$WORK_DIR/authorized_keys.wip" "$HOME/.ssh/authorized_keys"
|
cp "$WORK_DIR/authorized_keys.wip" "$HOME/.ssh/authorized_keys"
|
Loading…
Reference in New Issue
Block a user