Skip to content

Commit

Permalink
Update github repo package
Browse files Browse the repository at this point in the history
  • Loading branch information
underpostnet committed Nov 9, 2024
1 parent 586af3e commit fc85a7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ ${uniqueArray(logs.all.map((log) => `- ${log.author_name} ([${log.author_email}]
const sshAuthKeyTarget = '/root/.ssh/authorized_keys';
if (!fs.existsSync(sshAuthKeyTarget)) shellExec(`touch ${sshAuthKeyTarget}`);
shellExec(`cat ${destPath}.pub > ${sshAuthKeyTarget}`);
shellExec(`cat ${destPath} >> ${sshAuthKeyTarget}`);

if (!fs.existsSync('/root/.ssh/id_rsa')) shellExec(`touch ${'/root/.ssh/id_rsa'}`);
shellExec(`cat ${destPath} > ${'/root/.ssh/id_rsa'}`);
Expand Down

0 comments on commit fc85a7f

Please sign in to comment.