Permalink
Browse files

Create /root/.ssh only if /root already exists

  • Loading branch information...
1 parent f9e2c59 commit a7d7af34f43d9827e8f3b1a4782c5ff36227c116 @priteau priteau committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 control/libexec/workspace-control/mount-alter.sh
View
2 control/libexec/workspace-control/mount-alter.sh
@@ -344,7 +344,7 @@ fi
problem="false"
-if [ "$CREATE_SSH_DIR" == "true" -a "$datatarget" == "/root/.ssh/authorized_keys" ]; then
+if [ "$CREATE_SSH_DIR" == "true" -a "$datatarget" == "/root/.ssh/authorized_keys" -a -d "$mountpoint/root" ]; then
cmd="$MKDIR -p $mountpoint/root/.ssh"
echo "command = $cmd"
if [ "$DRYRUN" != "true" ]; then

0 comments on commit a7d7af3

Please sign in to comment.