Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Deployer/Task/Common/PrepareSshTaskGlobal.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public function configure(Configuration $config): void
}
}

return '~/.ssh/id_rsa'; // Fallback
$home = getenv('HOME');
if (!is_dir($home . '/.ssh')) {
mkdir($home . '/.ssh', 0700, true);
}
return $home . '/.ssh/id_rsa'; // Fallback
});

task('prepare:ssh', function () {
Expand Down
Loading